Skip to content

Commit

Permalink
Unrolled build for rust-lang#124066
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
rust-timer committed Apr 17, 2024
2 parents 00ed4ed + 182698f commit b4fedd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_infer/src/infer/mod.rs
Expand Up @@ -952,7 +952,7 @@ impl<'tcx> InferCtxt<'tcx> {
// a test for it.
(_, ty::Infer(ty::TyVar(_))) => {}
(ty::Infer(ty::TyVar(_)), _) => {}
_ if (r_a, r_b).has_opaque_types() => {
_ if r_a != r_b && (r_a, r_b).has_opaque_types() => {
span_bug!(
cause.span(),
"opaque types got hidden types registered from within subtype predicate: {r_a:?} vs {r_b:?}"
Expand Down

0 comments on commit b4fedd1

Please sign in to comment.