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 <david@davidtw.co>
This commit is contained in:
parent
9137fea30d
commit
f1e287948b
@ -1473,11 +1473,7 @@ fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<Self::BreakTy> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mut visitor = FnPtrFinder { visitor: &*self, spans: Vec::new(), tys: Vec::new() };
|
let mut visitor = FnPtrFinder { visitor: &*self, spans: Vec::new(), tys: Vec::new() };
|
||||||
self.cx
|
ty.visit_with(&mut visitor);
|
||||||
.tcx
|
|
||||||
.try_normalize_erasing_regions(self.cx.param_env, ty)
|
|
||||||
.unwrap_or(ty)
|
|
||||||
.visit_with(&mut visitor);
|
|
||||||
hir::intravisit::Visitor::visit_ty(&mut visitor, hir_ty);
|
hir::intravisit::Visitor::visit_ty(&mut visitor, hir_ty);
|
||||||
|
|
||||||
iter::zip(visitor.tys.drain(..), visitor.spans.drain(..)).collect()
|
iter::zip(visitor.tys.drain(..), visitor.spans.drain(..)).collect()
|
||||||
|
Loading…
Reference in New Issue
Block a user