Skip to content

Commit b4fedd1

Browse files
authored
Unrolled build for rust-lang#124066
Rollup merge of rust-lang#124066 - oli-obk:define_opaque_types7, r=compiler-errors Don't error on subtyping of equal types fixes rust-lang#124054 🤦 fixes rust-lang#124075 fixes rust-lang#124079 r? `@compiler-errors`
2 parents 00ed4ed + 182698f commit b4fedd1

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_infer/src/infer

1 file changed

+1
-1
lines changed

compiler/rustc_infer/src/infer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ impl<'tcx> InferCtxt<'tcx> {
952952
// a test for it.
953953
(_, ty::Infer(ty::TyVar(_))) => {}
954954
(ty::Infer(ty::TyVar(_)), _) => {}
955-
_ if (r_a, r_b).has_opaque_types() => {
955+
_ if r_a != r_b && (r_a, r_b).has_opaque_types() => {
956956
span_bug!(
957957
cause.span(),
958958
"opaque types got hidden types registered from within subtype predicate: {r_a:?} vs {r_b:?}"

0 commit comments

Comments
 (0)