do_normalize_predicates: add delay_span_bug

This commit is contained in:
Bastian Kauschke 2020-04-07 00:19:36 +02:00
parent 03d66a06e4
commit fca7d165be

View file

@ -260,7 +260,7 @@ fn do_normalize_predicates<'tcx>(
}
};
if predicates.needs_infer() {
// FIXME: shouldn't we, you know, actually report an error here? or an ICE?
tcx.sess.delay_span_bug(span, "encountered inference variables after `fully_resolve`");
Err(ErrorReported)
} else {
Ok(predicates)