Skip to content

Commit 9d09eed

Browse files
committed
uwu
1 parent 51debd6 commit 9d09eed

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

compiler/rustc_trait_selection/src/solve/alias_relate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
7373
}
7474

7575
/// Normalize the `term` to equate it later. This does not define opaque types.
76+
#[instrument(level = "debug", skip(self, param_env), ret)]
7677
fn try_normalize_term(
7778
&mut self,
7879
param_env: ty::ParamEnv<'tcx>,

compiler/rustc_trait_selection/src/solve/assembly/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
352352
let &ty::Alias(_, projection_ty) = goal.predicate.self_ty().kind() else { return };
353353

354354
candidates.extend(self.probe(|_| ProbeKind::NormalizedSelfTyAssembly).enter(|ecx| {
355-
if num_steps < ecx.local_overflow_limit() {
355+
if tcx.recursion_limit().value_within_limit(num_steps) {
356356
let normalized_ty = ecx.next_ty_infer();
357357
let normalizes_to_goal = goal.with(
358358
tcx,

compiler/rustc_trait_selection/src/solve/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
310310
depth: usize,
311311
ty: Ty<'tcx>,
312312
) -> Option<Ty<'tcx>> {
313-
if depth >= self.local_overflow_limit() {
313+
if !self.tcx().recursion_limit().value_within_limit(depth) {
314314
return None;
315315
}
316316

0 commit comments

Comments
 (0)