Add more information in ConstEvalFailure error
This commit is contained in:
parent
0bfbaa6e8d
commit
eb0afe1845
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue