review comments
This commit is contained in:
parent
62ba3e70a1
commit
3fa95b847b
3 changed files with 46 additions and 41 deletions
|
@ -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}"),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue