Skip to content

Commit a44cc9a

Browse files
committed
replace normalize with normalize_with_depth
1 parent b64578c commit a44cc9a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/librustc/traits/select.rs

+10-4
Original file line numberDiff line numberDiff line change
@@ -1432,8 +1432,11 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
14321432
obligation, trait_bound);
14331433

14341434
let Normalized { value: normal_bound, obligations } =
1435-
project::normalize(
1436-
self, obligation.param_env.clone(), obligation.cause.clone(),
1435+
normalize_with_depth(
1436+
self,
1437+
obligation.param_env.clone(),
1438+
obligation.cause.clone(),
1439+
obligation.recursion_depth,
14371440
&trait_bound);
14381441
debug!("match_projection: \
14391442
normal_bound={:?}, \
@@ -1442,8 +1445,11 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
14421445
self.inferred_obligations.extend(obligations);
14431446

14441447
let Normalized { value: normal_skol_trait_ref, obligations } =
1445-
project::normalize(
1446-
self, obligation.param_env.clone(), obligation.cause.clone(),
1448+
normalize_with_depth(
1449+
self,
1450+
obligation.param_env.clone(),
1451+
obligation.cause.clone(),
1452+
obligation.recursion_depth,
14471453
&skol_trait_ref);
14481454
debug!("match_projection: \
14491455
normal_skol_trait_ref={:?}, \

0 commit comments

Comments
 (0)