We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c6b302 commit 182698fCopy full SHA for 182698f
compiler/rustc_infer/src/infer/mod.rs
@@ -952,7 +952,7 @@ impl<'tcx> InferCtxt<'tcx> {
952
// a test for it.
953
(_, ty::Infer(ty::TyVar(_))) => {}
954
(ty::Infer(ty::TyVar(_)), _) => {}
955
- _ if (r_a, r_b).has_opaque_types() => {
+ _ if r_a != r_b && (r_a, r_b).has_opaque_types() => {
956
span_bug!(
957
cause.span(),
958
"opaque types got hidden types registered from within subtype predicate: {r_a:?} vs {r_b:?}"
0 commit comments