1
Fork 0

review comments

This commit is contained in:
Esteban Küber 2023-01-06 00:53:31 +00:00
parent 62ba3e70a1
commit 3fa95b847b
3 changed files with 46 additions and 41 deletions

View file

@ -442,12 +442,10 @@ fn check_opaque_meets_bounds<'tcx>(
match ocx.eq(&misc_cause, param_env, opaque_ty, hidden_ty) {
Ok(()) => {}
Err(ty_err) => {
let ty_err = ty_err.to_string(tcx);
tcx.sess.delay_span_bug(
span,
&format!(
"could not unify `{hidden_ty}` with revealed type:\n{}",
ty_err.to_string(tcx)
),
&format!("could not unify `{hidden_ty}` with revealed type:\n{ty_err}"),
);
}
}