mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add more information in ConstEvalFailure error
This commit is contained in:
parent
0bfbaa6e8d
commit
eb0afe1845
@ -914,8 +914,11 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// already reported in the query
|
// already reported in the query
|
||||||
ConstEvalFailure(_) => {
|
ConstEvalFailure(err) => {
|
||||||
self.tcx.sess.delay_span_bug(span, "constant in type had an ignored error");
|
self.tcx.sess.delay_span_bug(
|
||||||
|
span,
|
||||||
|
&format!("constant in type had an ignored error: {:?}", err),
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user