Skip to content

Commit a1c5cab

Browse files
committed
double recursion_depth
1 parent cbd027a commit a1c5cab

File tree

1 file changed

+8
-4
lines changed
  • compiler/rustc_next_trait_solver/src/solve/eval_ctxt

1 file changed

+8
-4
lines changed

compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,13 @@ where
189189
generate_proof_tree: GenerateProofTree,
190190
span: I::Span,
191191
) -> (Result<(HasChanged, Certainty), NoSolution>, Option<inspect::GoalEvaluation<I>>) {
192-
EvalCtxt::enter_root(self, self.cx().recursion_limit(), generate_proof_tree, span, |ecx| {
193-
ecx.evaluate_goal(GoalEvaluationKind::Root, GoalSource::Misc, goal)
194-
})
192+
EvalCtxt::enter_root(
193+
self,
194+
self.cx().recursion_limit() * 2,
195+
generate_proof_tree,
196+
span,
197+
|ecx| ecx.evaluate_goal(GoalEvaluationKind::Root, GoalSource::Misc, goal),
198+
)
195199
}
196200

197201
fn root_goal_may_hold_with_depth(
@@ -219,7 +223,7 @@ where
219223
) {
220224
EvalCtxt::enter_root(
221225
self,
222-
self.cx().recursion_limit(),
226+
self.cx().recursion_limit() * 2,
223227
generate_proof_tree,
224228
I::Span::dummy(),
225229
|ecx| ecx.evaluate_goal_raw(GoalEvaluationKind::Root, GoalSource::Misc, goal),

0 commit comments

Comments
 (0)