-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Miri: unleash all feature gates #71631
Merged
+385
−229
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e2c99f0
unleashed Miri: open all the gates
RalfJung 9273962
remove no longer needed feature flags
RalfJung c7eb916
deduplicate warnings
RalfJung 08ba014
make sure the miri-unleash-flag is not used to circumvent feature gates
RalfJung 17ca7a0
explain why we use def_span
RalfJung 89666ab
fix miri-unleash delayed sanity checking
RalfJung 99debec
warn about each skipped feature gate
RalfJung f7f606d
fmt
RalfJung a909c03
remove unneeded flags; exlain why we still have const_if_match
RalfJung 182133f
bless caller-location test
RalfJung 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 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,20 +1,20 @@ | ||
warning: skipping const checks | ||
| | ||
help: skipping check that does not even have a feature gate | ||
--> $DIR/const_fn_ptr.rs:12:5 | ||
| | ||
LL | X(x) | ||
| ^^^^ | ||
|
||
warning: skipping const checks | ||
help: skipping check that does not even have a feature gate | ||
--> $DIR/const_fn_ptr.rs:16:5 | ||
| | ||
LL | X_CONST(x) | ||
| ^^^^^^^^^^ | ||
|
||
warning: skipping const checks | ||
help: skipping check that does not even have a feature gate | ||
--> $DIR/const_fn_ptr.rs:20:5 | ||
| | ||
LL | x(y) | ||
| ^^^^ | ||
|
||
warning: 3 warnings emitted | ||
warning: 1 warning emitted | ||
|
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,27 +1,28 @@ | ||
warning: skipping const checks | ||
error[E0080]: could not evaluate static initializer | ||
--> $DIR/abi-mismatch.rs:10:5 | ||
| | ||
LL | my_fn(); | ||
| ^^^^^^^ | ||
| | | ||
| calling a function with ABI C using caller ABI Rust | ||
| inside `call_rust_fn` at $DIR/abi-mismatch.rs:10:5 | ||
... | ||
LL | static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) }); | ||
| --------------------------------------------------------------------- inside `VAL` at $DIR/abi-mismatch.rs:16:18 | ||
|
||
warning: skipping const checks | ||
--> $DIR/abi-mismatch.rs:17:40 | ||
| | ||
LL | static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) }); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0080]: could not evaluate static initializer | ||
help: skipping check that does not even have a feature gate | ||
--> $DIR/abi-mismatch.rs:10:5 | ||
| | ||
LL | my_fn(); | ||
| ^^^^^^^ | ||
| | | ||
| calling a function with ABI C using caller ABI Rust | ||
| inside `call_rust_fn` at $DIR/abi-mismatch.rs:10:5 | ||
... | ||
help: skipping check that does not even have a feature gate | ||
--> $DIR/abi-mismatch.rs:16:40 | ||
| | ||
LL | static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) }); | ||
| --------------------------------------------------------------------- inside `VAL` at $DIR/abi-mismatch.rs:17:18 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error; 2 warnings emitted | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
warning: skipping const checks | ||
--> $DIR/assoc_const.rs:14:20 | ||
| | ||
LL | const F: u32 = (U::X, 42).1; | ||
| ^^^^^^^^^^ | ||
|
||
error[E0080]: erroneous constant used | ||
--> $DIR/assoc_const.rs:31:13 | ||
| | ||
LL | let y = <String as Bar<Vec<u32>, String>>::F; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors | ||
|
||
warning: skipping const checks | ||
| | ||
help: skipping check that does not even have a feature gate | ||
--> $DIR/assoc_const.rs:14:20 | ||
| | ||
LL | const F: u32 = (U::X, 42).1; | ||
| ^^^^^^^^^^ | ||
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another curious thing about diagnostic UI tests: looks like
NOTE
annotations match what the rustc API calls "labels". Do they also match what the rustc API calls "note"?