-
Notifications
You must be signed in to change notification settings - Fork 358
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 #120715 - matthiaskrgr:rollup-sp1pp74, r=matthiaskrgr
Rollup of 12 pull requests Successful merges: - #120520 (Some cleanups around diagnostic levels.) - #120575 (Simplify codegen diagnostic handling) - #120597 (Suggest `[tail @ ..]` on `[..tail]` and `[...tail]` where `tail` is unresolved) - #120602 (rustc_monomorphize: fix outdated comment in partition) - #120609 (hir: Stop keeping prefixes for most of `use` list stems) - #120631 (Emit a diagnostic for invalid target options) - #120632 (For E0223, suggest associated functions that are similar to the path) - #120670 (cleanup effect var handling) - #120673 (rustc_metadata: fix typo) - #120683 (miri: fix ICE with symbolic alignment check on extern static) - #120690 (Remove b-naber from the compiler review rotation) - #120713 (Make async closures test use async bound modifier) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
7 changed files
with
75 additions
and
23 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
12 changes: 12 additions & 0 deletions
12
tests/fail/issue-miri-3288-ice-symbolic-alignment-extern-static.rs
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,12 @@ | ||
//@compile-flags: -Zmiri-symbolic-alignment-check | ||
|
||
extern "C" { | ||
static _dispatch_queue_attr_concurrent: [u8; 0]; | ||
} | ||
|
||
static DISPATCH_QUEUE_CONCURRENT: &'static [u8; 0] = | ||
unsafe { &_dispatch_queue_attr_concurrent }; | ||
|
||
fn main() { | ||
let _val = *DISPATCH_QUEUE_CONCURRENT; //~ERROR: is not supported | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/fail/issue-miri-3288-ice-symbolic-alignment-extern-static.stderr
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,14 @@ | ||
error: unsupported operation: `extern` static `_dispatch_queue_attr_concurrent` from crate `issue_miri_3288_ice_symbolic_alignment_extern_static` is not supported by Miri | ||
--> $DIR/issue-miri-3288-ice-symbolic-alignment-extern-static.rs:LL:CC | ||
| | ||
LL | let _val = *DISPATCH_QUEUE_CONCURRENT; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ `extern` static `_dispatch_queue_attr_concurrent` from crate `issue_miri_3288_ice_symbolic_alignment_extern_static` is not supported by Miri | ||
| | ||
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support | ||
= note: BACKTRACE: | ||
= note: inside `main` at $DIR/issue-miri-3288-ice-symbolic-alignment-extern-static.rs:LL:CC | ||
|
||
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace | ||
|
||
error: aborting due to 1 previous error | ||
|
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