We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8936d67 commit e02dc4aCopy full SHA for e02dc4a
src/shims/panic.rs
@@ -47,6 +47,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
47
48
trace!("miri_start_panic: {:?}", this.frame().span);
49
50
+ // Get the raw pointer stored in arg[0] (the panic payload).
51
let scalar = this.read_immediate(args[0])?;
52
assert!(this.machine.panic_payload.is_none(), "the panic runtime should avoid double-panics");
53
this.machine.panic_payload = Some(scalar);
0 commit comments