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.
1 parent 6331c92 commit 4a3732bCopy full SHA for 4a3732b
compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -414,8 +414,6 @@ fn report_eval_error<'tcx>(
414
let (error, backtrace) = error.into_parts();
415
backtrace.print_backtrace();
416
417
- let instance = with_no_trimmed_paths!(cid.instance.to_string());
418
-
419
super::report(
420
ecx,
421
error,
@@ -430,7 +428,7 @@ fn report_eval_error<'tcx>(
430
428
diag.subdiagnostic(frame);
431
429
}
432
// Add after the frame rendering above, as it adds its own `instance` args.
433
- diag.arg("instance", instance);
+ diag.arg("instance", with_no_trimmed_paths!(cid.instance.to_string()));
434
diag.arg("num_frames", num_frames);
435
},
436
)
0 commit comments