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.
2 parents b8312fa + de84ae3 commit d6ea7d2Copy full SHA for d6ea7d2
src/shims/panic.rs
@@ -247,7 +247,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
247
248
_ => {
249
// Call the lang item associated with this message.
250
- let fn_item = this.tcx.require_lang_item(msg.panic_function(), None);
+ let fn_item = this.tcx.require_lang_item(msg.panic_function(), this.tcx.span);
251
let instance = ty::Instance::mono(this.tcx.tcx, fn_item);
252
this.call_function(
253
instance,
0 commit comments