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
|
||||
ConstEvalFailure(_) => {
|
||||
self.tcx.sess.delay_span_bug(span, "constant in type had an ignored error");
|
||||
ConstEvalFailure(err) => {
|
||||
self.tcx.sess.delay_span_bug(
|
||||
span,
|
||||
&format!("constant in type had an ignored error: {:?}", err),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user