Skip to content

Commit 5e087fe

Browse files
committed
Replace some Option<Span> with Span and use DUMMY_SP instead of None
1 parent 0e79c68 commit 5e087fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
247247

248248
_ => {
249249
// Call the lang item associated with this message.
250-
let fn_item = this.tcx.require_lang_item(msg.panic_function(), None);
250+
let fn_item = this.tcx.require_lang_item(msg.panic_function(), this.tcx.span);
251251
let instance = ty::Instance::mono(this.tcx.tcx, fn_item);
252252
this.call_function(
253253
instance,

0 commit comments

Comments
 (0)