]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_analysis/src/check/check.rs
Rollup merge of #107467 - WaffleLapkin:uneq, r=oli-obk
[rust.git] / compiler / rustc_hir_analysis / src / check / check.rs
index 8609afc506806a4fbbd8b90da33804cbd83942d4..47eace961be55393eee2b53b0c6e5539aebb97c4 100644 (file)
@@ -442,6 +442,7 @@ 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}"),