The Miri engine uses "exceptions" (InterpResult) to report misbehaving executions and propagate this information outwards to the machine (const-eval/const-prop/miri-the-tool). When an error is raised, we optionally capture a backtrace to ease debugging.
There are two problems with this:
Cc @oli-obk
The Miri engine uses "exceptions" (
InterpResult) to report misbehaving executions and propagate this information outwards to the machine (const-eval/const-prop/miri-the-tool). When an error is raised, we optionally capture a backtrace to ease debugging.There are two problems with this:
RUSTC_CTFE_BACKTRACEmuch less by generating fewer errors #69290 brought some nice speed-up by removing just one case of catching an interpreter error! I think we should never catch these errors. Is there something we can do to prevent accidental catching?Cc @oli-obk