Skip to content

Commit 513b139

Browse files
committed
WIP
1 parent 2090303 commit 513b139

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/traits/select/confirmation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
195195
obligations.extend(
196196
self.infcx
197197
.at(&obligation.cause, obligation.param_env)
198-
.eq(DefineOpaqueTypes::No, placeholder_trait_predicate, candidate)
198+
.eq(DefineOpaqueTypes::Yes, placeholder_trait_predicate, candidate)
199199
.map(|InferOk { obligations, .. }| obligations)
200200
.map_err(|_| Unimplemented)?,
201201
);

compiler/rustc_trait_selection/src/traits/select/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
17521752
let is_match = self
17531753
.infcx
17541754
.at(&obligation.cause, obligation.param_env)
1755-
.eq(DefineOpaqueTypes::No, obligation.predicate, infer_projection)
1755+
.eq(DefineOpaqueTypes::Yes, obligation.predicate, infer_projection)
17561756
.is_ok_and(|InferOk { obligations, value: () }| {
17571757
self.evaluate_predicates_recursively(
17581758
TraitObligationStackList::empty(&ProvisionalEvaluationCache::default()),

0 commit comments

Comments
 (0)