Skip to content

Commit e7f9e14

Browse files
Add one to recursion depth in a few places
1 parent bc293ed commit e7f9e14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
625625
self,
626626
obligation.param_env,
627627
cause.clone(),
628-
obligation.recursion_depth,
628+
obligation.recursion_depth + 1,
629629
output_ty,
630630
&mut nested,
631631
);
@@ -650,7 +650,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
650650

651651
let trait_obligations = self.impl_or_trait_obligations(
652652
&obligation.cause,
653-
obligation.recursion_depth,
653+
obligation.recursion_depth + 1,
654654
obligation.param_env,
655655
trait_def_id,
656656
&substs,

0 commit comments

Comments
 (0)