-
Notifications
You must be signed in to change notification settings - Fork 379
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
Should Miri report MIR validation failures? #2840
Comments
I am not entirely sure why that validation pass is skipped in Miri. @oli-obk is this some accident in MIR pass management? |
That's really odd... I looked into it and it makes no sense. We fetch |
I had a look since I already have a rustc+miri with debug assertions laying around and I didn't see anything interesting 🤔
|
If I try this with today's Miri, I do get the expected ICE. |
add test checking that we do run MIR validation Fixes rust-lang/miri#2840
rustc
contains a MIR validation pass which detects ill-formed MIR. Currently Miri does not report MIR validation failures, but should it?For instance, in runtime MIR,
Deref
must the the first projection if one exists. This code (rust-lang/rust#110228) performs a dereference after a field projection, so it fails MIR validation, but Miri runs this without any complaintThe text was updated successfully, but these errors were encountered: