Skip to content

Commit 84dae3f

Browse files
committed
Replace DefineOpaqueTypes::No to DefineOpaqueTypes::Yes
1 parent efb1470 commit 84dae3f

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_hir_analysis/src/coherence

1 file changed

+1
-1
lines changed

compiler/rustc_hir_analysis/src/coherence/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ fn visit_implementation_of_dispatch_from_dyn(tcx: TyCtxt<'_>, impl_did: LocalDef
165165
use rustc_type_ir::TyKind::*;
166166
match (source.kind(), target.kind()) {
167167
(&Ref(r_a, _, mutbl_a), Ref(r_b, _, mutbl_b))
168-
if infcx.at(&cause, param_env).eq(DefineOpaqueTypes::No, r_a, *r_b).is_ok()
168+
if infcx.at(&cause, param_env).eq(DefineOpaqueTypes::Yes, r_a, *r_b).is_ok()
169169
&& mutbl_a == *mutbl_b => {}
170170
(&RawPtr(tm_a), &RawPtr(tm_b)) if tm_a.mutbl == tm_b.mutbl => (),
171171
(&Adt(def_a, args_a), &Adt(def_b, args_b)) if def_a.is_struct() && def_b.is_struct() => {

0 commit comments

Comments
 (0)