Skip to content

Commit 0f4d959

Browse files
committed
recursion_limit times 2? xd
1 parent a26a6a6 commit 0f4d959

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

Diff for: compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,13 @@ where
220220
generate_proof_tree: GenerateProofTree,
221221
span: I::Span,
222222
) -> (Result<(HasChanged, Certainty), NoSolution>, Option<inspect::GoalEvaluation<I>>) {
223-
EvalCtxt::enter_root(self, self.cx().recursion_limit(), generate_proof_tree, span, |ecx| {
224-
ecx.evaluate_goal(GoalEvaluationKind::Root, GoalSource::Misc, goal)
225-
})
223+
EvalCtxt::enter_root(
224+
self,
225+
self.cx().recursion_limit() * 2,
226+
generate_proof_tree,
227+
span,
228+
|ecx| ecx.evaluate_goal(GoalEvaluationKind::Root, GoalSource::Misc, goal),
229+
)
226230
}
227231

228232
fn root_goal_may_hold_with_depth(
@@ -250,7 +254,7 @@ where
250254
) {
251255
EvalCtxt::enter_root(
252256
self,
253-
self.cx().recursion_limit(),
257+
self.cx().recursion_limit() * 2,
254258
generate_proof_tree,
255259
I::Span::dummy(),
256260
|ecx| ecx.evaluate_goal_raw(GoalEvaluationKind::Root, GoalSource::Misc, goal),

0 commit comments

Comments
 (0)