1
Fork 0

review comments

This commit is contained in:
Esteban Küber 2020-10-23 12:51:06 -07:00
parent b334eef162
commit f71e9ed7f1
2 changed files with 10 additions and 14 deletions

View file

@ -121,7 +121,10 @@ where
// contains unbound type parameters. It could be a slight
// optimization to stop iterating early.
if let Err(errors) = fulfill_cx.select_all_or_error(infcx) {
bug!("Encountered errors `{:?}` resolving bounds after type-checking", errors);
infcx.tcx.sess.delay_span_bug(
rustc_span::DUMMY_SP,
&format!("Encountered errors `{:?}` resolving bounds after type-checking", errors),
);
}
let result = infcx.resolve_vars_if_possible(result);