Description
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?