-
Notifications
You must be signed in to change notification settings - Fork 348
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
Remove -Zmiri-panic-on-unsupported
?
#3952
Comments
I'll have to look more -- it's been a while since I thought about the internals of the initial change. This point from the original issue was important:
If running
Currently no. I left the job where I was motivated to add this flag and my current job doesn't yet have code where I'd like to use this. I use it a couple times a year but ultimately I'm not going to ask you to maintain something that has overhead and is not frequently used even by me, so removing this seems fine to me. |
Thanks for the quick reply!
Yes, it will run each
If you have any idea who might be maintaining that codebase now and could ping them here (or use other channels to inform them about this issue), just in case they still need the flag, that'd be great. :) If not I guess we'll just remove it and see if anyone complains. 🤷 |
I have no idea who is maintaining it now. I'd say to just move forward in removal and rejoice. |
I never use this flag before, but I wonder how exactly can we get |
|
Alright, thanks! |
…em, r=RalfJung,saethlin,oli-obk remove -Zmiri-panic-on-unsupported flag Fixes rust-lang/miri#3952, see that issue for discussion.
This flag turns (some) "unsupported" errors into Rust panics in the interpreted program, rather than aborting interpretation. See #1807 for context and motivation. However, the flag has never been fully implemented, and has annoying maintenance consequences -- calling the
handle_unsupported_foreign_item
helper actually requires some care or it will lead to some very strange behavior (and the behavior occurs only on the error path, so it is unlikely to be tested) -- in fact, the original implementation ran into that very issue, and in a recent PR a contributor repeated that mistake.The motivation in #1807 can, I think, be covered by
cargo miri nextest
instead: this can be used to run all tests independent of each other, and process the results to see if any of them are about UB. So IMO we should remove-Zmiri-panic-on-unsupported
; it's maintenance cost IMO outweighs its usefulness.@landaire you suggested and implemented that flag. Do you still have a use for it, and would
cargo miri nextest
also cover that usecase?The text was updated successfully, but these errors were encountered: