Skip to content

Commit 7ecff7b

Browse files
authored
Rollup merge of #142012 - oli-obk:no-optional-spans, r=fee1-dead
Replace some `Option<Span>` with `Span` and use DUMMY_SP instead of None Turns out many locations actually have a span available that we could use, so I used it
2 parents e59880d + 5e087fe commit 7ecff7b

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)