Skip to content

Commit f1e2879

Browse files
committed
lint: stop normalizing types to avoid recur limits
This was causing compilation failures in the performance benchmarking as diesel hit recursion limits. Signed-off-by: David Wood <[email protected]>
1 parent 9137fea commit f1e2879

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/rustc_lint/src/types.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1473,11 +1473,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
14731473
}
14741474

14751475
let mut visitor = FnPtrFinder { visitor: &*self, spans: Vec::new(), tys: Vec::new() };
1476-
self.cx
1477-
.tcx
1478-
.try_normalize_erasing_regions(self.cx.param_env, ty)
1479-
.unwrap_or(ty)
1480-
.visit_with(&mut visitor);
1476+
ty.visit_with(&mut visitor);
14811477
hir::intravisit::Visitor::visit_ty(&mut visitor, hir_ty);
14821478

14831479
iter::zip(visitor.tys.drain(..), visitor.spans.drain(..)).collect()

0 commit comments

Comments
 (0)