-
Notifications
You must be signed in to change notification settings - Fork 78
Rustup to "rustc 1.59.0-nightly (78fd0f633 2021-12-29)" #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
27a819e
Rebase fallout.
cjgillot 583170a
Move rustc_middle::middle::cstore to rustc_session.
cjgillot 7033f75
Create more accurate debuginfo for vtables.
michaelwoerister 775b6da
Auto merge of #89597 - michaelwoerister:improve-vtable-debuginfo, r=w…
bors 98f0580
Remove alloc::prelude
Amanieu ce9faca
Make hash_result an Option.
cjgillot 14b83de
Add LLVM CFI support to the Rust compiler
rcvalle 8094e2e
Properly check `target_features` not to trigger an assertion
JohnTitor d5a6aaf
Auto merge of #89652 - rcvalle:rust-cfi, r=nagisa
bors a912fed
Remove workaround for the forward progress handling in LLVM
andjo403 0d61135
Feat: make cg_ssa get_param borrow the builder mutable
RDambrosio016 dcd4825
fix sparc64 ABI for aggregates with floating point members
psumbera 48fc7d9
Auto merge of #91003 - psumbera:sparc64-abi, r=nagisa
bors b7cb08d
rustc_codegen_gcc: error on unwinding inline asm
cynecx 4fa64fd
rustc_codegen_gcc: proper check for may_unwind
cynecx 4e68093
Implement inline asm! for AVR platform
couchand 98afc30
Use object crate for .rustc metadata generation
nikic 0d936e1
Remove the reg_thumb register class for asm! on ARM
Amanieu 2e7bc96
Auto merge of #91604 - nikic:section-flags, r=nagisa
bors b1d329b
Remove redundant [..]s
est31 10a9b12
Rollup merge of #90796 - Amanieu:remove_reg_thumb, r=joshtriplett
matthiaskrgr c6009ca
Rollup merge of #91625 - est31:remove_indexes, r=oli-obk
matthiaskrgr eec5f91
Stabilize asm! and global_asm!
Amanieu 379fb40
Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`
tmiasko f87a8f8
Rollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk
matthiaskrgr bba8b97
Remove unnecessary sigils around `Symbol::as_str()` calls.
nnethercote c5d0023
Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk
bors ebc6ad4
Sync from rust 65d8785f0a85d233e00fc84445f1aab451ec9f4f
bjorn3 049b6ae
Rustup to rustc 1.59.0-nightly (78fd0f633 2021-12-29)
bjorn3 31482a9
Import std::arch::asm
bjorn3 a2c5d29
Add missing feature gate
bjorn3 d7fb7aa
Disable portable-simd test
bjorn3 0afd012
Disable long running libcore tests
bjorn3 92fbc8f
Ignore new failing test_is_sorted test
bjorn3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From b1ae000f6da1abd3b8e9b80c40bc11c89b8ae93c Mon Sep 17 00:00:00 2001 | ||
From: bjorn3 <[email protected]> | ||
Date: Thu, 30 Dec 2021 16:54:40 +0100 | ||
Subject: [PATCH] [core] Disable portable-simd test | ||
|
||
--- | ||
library/core/tests/lib.rs | 1 - | ||
1 file changed, 1 deletion(-) | ||
|
||
diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs | ||
index ec70034..7cd9e21 100644 | ||
--- a/library/core/tests/lib.rs | ||
+++ b/library/core/tests/lib.rs | ||
@@ -121,7 +121,6 @@ mod pattern; | ||
mod pin; | ||
mod ptr; | ||
mod result; | ||
-mod simd; | ||
mod slice; | ||
mod str; | ||
mod str_lossy; | ||
-- | ||
2.26.2.7.g19db9cfb68 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 0ffdd8eda8df364391c8ac6e1ce92c73ba9254d4 Mon Sep 17 00:00:00 2001 | ||
From: bjorn3 <[email protected]> | ||
Date: Fri, 3 Dec 2021 12:16:30 +0100 | ||
Subject: [PATCH] Disable long running tests | ||
|
||
--- | ||
library/core/tests/slice.rs | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs | ||
index 2c8f00a..44847ee 100644 | ||
--- a/library/core/tests/slice.rs | ||
+++ b/library/core/tests/slice.rs | ||
@@ -2332,7 +2332,8 @@ macro_rules! empty_max_mut { | ||
}; | ||
} | ||
|
||
+/* | ||
#[cfg(not(miri))] // Comparing usize::MAX many elements takes forever in Miri (and in rustc without optimizations) | ||
take_tests! { | ||
slice: &[(); usize::MAX], method: take, | ||
(take_in_bounds_max_range_to, (..usize::MAX), Some(EMPTY_MAX), &[(); 0]), | ||
@@ -2345,3 +2347,4 @@ take_tests! { | ||
(take_mut_oob_max_range_to_inclusive, (..=usize::MAX), None, empty_max_mut!()), | ||
(take_mut_in_bounds_max_range_from, (usize::MAX..), Some(&mut [] as _), empty_max_mut!()), | ||
} | ||
+*/ | ||
-- | ||
2.26.2.7.g19db9cfb68 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nightly-2021-10-30 | ||
nightly-2021-12-30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,12 @@ use gccjit::{ | |
GlobalKind, | ||
}; | ||
use rustc_middle::dep_graph; | ||
use rustc_middle::middle::exported_symbols; | ||
use rustc_middle::ty::TyCtxt; | ||
use rustc_middle::mir::mono::Linkage; | ||
use rustc_codegen_ssa::{ModuleCodegen, ModuleKind}; | ||
use rustc_codegen_ssa::base::maybe_create_entry_wrapper; | ||
use rustc_codegen_ssa::mono_item::MonoItemExt; | ||
use rustc_codegen_ssa::traits::DebugInfoMethods; | ||
use rustc_metadata::EncodedMetadata; | ||
use rustc_session::config::DebugInfo; | ||
use rustc_span::Symbol; | ||
|
||
|
@@ -135,40 +133,3 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol) -> (Modul | |
|
||
(module, cost) | ||
} | ||
|
||
pub fn write_compressed_metadata<'tcx>(tcx: TyCtxt<'tcx>, metadata: &EncodedMetadata, gcc_module: &mut GccContext) { | ||
use snap::write::FrameEncoder; | ||
use std::io::Write; | ||
|
||
// Historical note: | ||
// | ||
// When using link.exe it was seen that the section name `.note.rustc` | ||
// was getting shortened to `.note.ru`, and according to the PE and COFF | ||
// specification: | ||
// | ||
// > Executable images do not use a string table and do not support | ||
// > section names longer than 8 characters | ||
// | ||
// https://docs.microsoft.com/en-us/windows/win32/debug/pe-format | ||
// | ||
// As a result, we choose a slightly shorter name! As to why | ||
// `.note.rustc` works on MinGW, see | ||
// https://github.com/llvm/llvm-project/blob/llvmorg-12.0.0/lld/COFF/Writer.cpp#L1190-L1197 | ||
let section_name = if tcx.sess.target.is_like_osx { "__DATA,.rustc" } else { ".rustc" }; | ||
|
||
let context = &gcc_module.context; | ||
let mut compressed = rustc_metadata::METADATA_HEADER.to_vec(); | ||
FrameEncoder::new(&mut compressed).write_all(&metadata.raw_data()).unwrap(); | ||
|
||
let name = exported_symbols::metadata_symbol_name(tcx); | ||
let typ = context.new_array_type(None, context.new_type::<u8>(), compressed.len() as i32); | ||
let global = context.new_global(None, GlobalKind::Exported, typ, name); | ||
global.global_set_initializer(&compressed); | ||
global.set_link_section(section_name); | ||
|
||
// Also generate a .section directive to force no | ||
// flags, at least for ELF outputs, so that the | ||
// metadata doesn't get loaded into memory. | ||
let directive = format!(".section {}", section_name); | ||
context.add_top_level_asm(None, &directive); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cg_ssa now has builtin support for writing the dylib metadata object. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.