forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#72905 - JohnTitor:rollup-phtyo5i, r=JohnTitor
Rollup of 10 pull requests Successful merges: - rust-lang#72775 (Return early to avoid ICE) - rust-lang#72795 (Add a test for `$:ident` in proc macro input) - rust-lang#72822 (remove trivial calls to mk_const) - rust-lang#72825 (Clarify errors and warnings about the transition to the new asm!) - rust-lang#72827 (changed *nix to Unix-like) - rust-lang#72880 (Clean up E0637 explanation) - rust-lang#72886 (Remove allow missing_debug_implementations for MaybeUninit) - rust-lang#72889 (rustc: Remove the `--passive-segments` LLD flag on wasm) - rust-lang#72891 (Add associated consts MIN/MAX for Wrapping<Int>) - rust-lang#72893 (test miri-unleash TLS accesses) Failed merges: r? @ghost
- Loading branch information
Showing
32 changed files
with
238 additions
and
87 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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,18 +1,24 @@ | ||
error: legacy asm! syntax is no longer supported | ||
error: the legacy LLVM-style asm! syntax is no longer supported | ||
--> $DIR/rustfix-asm.rs:10:9 | ||
| | ||
LL | asm!("" :: "r" (x)); | ||
| ----^^^^^^^^^^^^^^^^ | ||
| | | ||
| help: replace with: `llvm_asm!` | ||
| | ||
= note: consider migrating to the new asm! syntax specified in RFC 2873 | ||
= note: alternatively, switch to llvm_asm! to keep your code working as it is | ||
|
||
error: legacy asm! syntax is no longer supported | ||
error: the legacy LLVM-style asm! syntax is no longer supported | ||
--> $DIR/rustfix-asm.rs:12:9 | ||
| | ||
LL | asm!("" : "=r" (y)); | ||
| ----^^^^^^^^^^^^^^^^ | ||
| | | ||
| help: replace with: `llvm_asm!` | ||
| | ||
= note: consider migrating to the new asm! syntax specified in RFC 2873 | ||
= note: alternatively, switch to llvm_asm! to keep your code working as it is | ||
|
||
error: aborting due to 2 previous errors | ||
|
This file contains 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,15 +1,22 @@ | ||
// compile-flags: -Zunleash-the-miri-inside-of-you | ||
// only-x86_64 | ||
#![feature(llvm_asm)] | ||
#![feature(asm,llvm_asm)] | ||
#![allow(const_err)] | ||
|
||
fn main() {} | ||
|
||
// Make sure we catch executing inline assembly. | ||
static TEST_BAD: () = { | ||
static TEST_BAD1: () = { | ||
unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); } | ||
//~^ ERROR could not evaluate static initializer | ||
//~| NOTE inline assembly is not supported | ||
//~| NOTE in this expansion of llvm_asm! | ||
//~| NOTE in this expansion of llvm_asm! | ||
}; | ||
|
||
// Make sure we catch executing inline assembly. | ||
static TEST_BAD2: () = { | ||
unsafe { asm!("nop"); } | ||
//~^ ERROR could not evaluate static initializer | ||
//~| NOTE inline assembly is not supported | ||
}; |
This file contains 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 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,17 @@ | ||
// compile-flags: -Zunleash-the-miri-inside-of-you | ||
#![feature(thread_local)] | ||
#![allow(const_err)] | ||
|
||
use std::thread; | ||
|
||
#[thread_local] | ||
static A: u8 = 0; | ||
|
||
// Make sure we catch accessing thread-local storage. | ||
static TEST_BAD: () = { | ||
unsafe { let _val = A; } | ||
//~^ ERROR could not evaluate static initializer | ||
//~| NOTE cannot access thread local static | ||
}; | ||
|
||
fn main() {} |
This file contains 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,17 @@ | ||
error[E0080]: could not evaluate static initializer | ||
--> $DIR/tls.rs:12:25 | ||
| | ||
LL | unsafe { let _val = A; } | ||
| ^ cannot access thread local static (DefId(0:4 ~ tls[317d]::A[0])) | ||
|
||
warning: skipping const checks | ||
| | ||
help: skipping check that does not even have a feature gate | ||
--> $DIR/tls.rs:12:25 | ||
| | ||
LL | unsafe { let _val = A; } | ||
| ^ | ||
|
||
error: aborting due to previous error; 1 warning emitted | ||
|
||
For more information about this error, try `rustc --explain E0080`. |
This file contains 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 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 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 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 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
Oops, something went wrong.