Skip to content

Commit

Permalink
do_normalize_predicates: add delay_span_bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Apr 8, 2020
1 parent 03d66a0 commit fca7d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trait_selection/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fca7d16

Please sign in to comment.