Set ok value

This commit is contained in:
Yuki OKUSHI 2019-03-23 00:51:08 +09:00
parent 526b355858
commit ee0e1b7615

View File

@ -650,9 +650,9 @@ pub fn const_eval_raw_provider<'a, 'tcx>(
"could not evaluate static initializer");
});
match tracked_err {
Ok(_) => tcx.sess.delay_span_bug(err.span,
Ok(reported_err) => tcx.sess.delay_span_bug(err.span,
&format!("static eval failure did not emit an error: {:#?}",
tracked_err)),
reported_err)),
Err(_) => (),
}
reported_err