Skip to content

Commit e5675ab

Browse files
committed
follow-up to review
1 parent 2661295 commit e5675ab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/eval.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,7 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) {
221221
};
222222

223223
let msg = format!("Miri evaluation error: {}", msg);
224-
let mut err = {
225-
let new_tcx = ecx.tcx.tcx.at(span);
226-
new_tcx.sess.struct_span_err(new_tcx.span, msg.as_str())
227-
};
224+
let mut err = ecx.tcx.sess.struct_span_err(span, msg.as_str());
228225
let frames = ecx.generate_stacktrace(None);
229226
err.span_label(span, msg);
230227
// We iterate with indices because we need to look at the next frame (the caller).

0 commit comments

Comments
 (0)