rustc: future-proof error reporting for polymorphic constants in types.
This commit is contained in:
parent
ff6422d7a3
commit
046482e95e
1 changed files with 5 additions and 1 deletions
|
|
@ -846,7 +846,11 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
|
|||
"could not evaluate constant expression",
|
||||
) {
|
||||
Some(err) => err,
|
||||
None => return,
|
||||
None => {
|
||||
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