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 526b355 commit ee0e1b7Copy full SHA for ee0e1b7
src/librustc_mir/const_eval.rs
@@ -650,9 +650,9 @@ pub fn const_eval_raw_provider<'a, 'tcx>(
650
"could not evaluate static initializer");
651
});
652
match tracked_err {
653
- Ok(_) => tcx.sess.delay_span_bug(err.span,
+ Ok(reported_err) => tcx.sess.delay_span_bug(err.span,
654
&format!("static eval failure did not emit an error: {:#?}",
655
- tracked_err)),
+ reported_err)),
656
Err(_) => (),
657
}
658
reported_err
0 commit comments