Skip to content

Commit fca7d16

Browse files
committed
do_normalize_predicates: add delay_span_bug
1 parent 03d66a0 commit fca7d16

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_trait_selection/traits

1 file changed

+1
-1
lines changed

src/librustc_trait_selection/traits/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ fn do_normalize_predicates<'tcx>(
260260
}
261261
};
262262
if predicates.needs_infer() {
263-
// FIXME: shouldn't we, you know, actually report an error here? or an ICE?
263+
tcx.sess.delay_span_bug(span, "encountered inference variables after `fully_resolve`");
264264
Err(ErrorReported)
265265
} else {
266266
Ok(predicates)

0 commit comments

Comments
 (0)