We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28b6373 commit 534426dCopy full SHA for 534426d
compiler/rustc_infer/src/infer/nll_relate/mod.rs
@@ -599,6 +599,10 @@ where
599
600
(&ty::Opaque(a_def_id, _), &ty::Opaque(b_def_id, _)) if a_def_id == b_def_id => {
601
infcx.commit_if_ok(|_| infcx.super_combine_tys(self, a, b)).or_else(|err| {
602
+ self.tcx().sess.delay_span_bug(
603
+ self.delegate.span(),
604
+ "failure to relate an opaque to itself should result in an error later on",
605
+ );
606
if a_def_id.is_local() { self.relate_opaques(a, b) } else { Err(err) }
607
})
608
}
0 commit comments