-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
test the unleashed Miri #67580
test the unleashed Miri #67580
Conversation
@@ -6,31 +6,31 @@ | |||
use std::sync::atomic::AtomicUsize; | |||
use std::sync::atomic::Ordering; | |||
|
|||
const BOO: &usize = { //~ ERROR undefined behavior to use this value | |||
const REF_INTERIOR_MUT: &usize = { //~ ERROR undefined behavior to use this value |
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.
You don't like my useless variable names? 🙃
If we'd had the _
name feature back when I wrote the test I'dve used that
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.
I'd argue readable names are better even than _
;)
}; | ||
|
||
// Make sure we catch executing bad drop functions. | ||
// The actual error is located in `real_drop_in_place` so we can't capture it with the |
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.
you can use error-pattern
on the file or whatever that comment tag is called.
But in general I think it would be useful to have //~ LABEL
annotations that just check for any sub-span on an error
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.
But in general I think it would be useful to have //~ LABEL annotations that just check for any sub-span on an error
That would be a new compiletest feature, right, nothing I can do now?
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.
yea it was just random musings
@oli-obk I think I addressed all comments. |
@bors r+ |
📌 Commit 40b8b7c has been approved by |
test the unleashed Miri In particular, test what happens when we try to drop something. Cc rust-lang/const-eval#17 r? @oli-obk
☀️ Test successful - checks-azure |
In particular, test what happens when we try to drop something. Cc rust-lang/const-eval#17
r? @oli-obk