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.
Option<Span>
Span
1 parent 0e79c68 commit 5e087feCopy full SHA for 5e087fe
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