File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1616
1717use crate :: { passes:: LateLintPassObject , LateContext , LateLintPass , LintStore } ;
1818use rustc_ast as ast;
19+ use rustc_data_structures:: stack:: ensure_sufficient_stack;
1920use rustc_data_structures:: sync:: { join, DynSend } ;
2021use rustc_hir as hir;
2122use rustc_hir:: def_id:: LocalDefId ;
@@ -157,10 +158,12 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
157158 }
158159
159160 fn visit_expr ( & mut self , e : & ' tcx hir:: Expr < ' tcx > ) {
160- self . with_lint_attrs ( e. hir_id , |cx| {
161- lint_callback ! ( cx, check_expr, e) ;
162- hir_visit:: walk_expr ( cx, e) ;
163- lint_callback ! ( cx, check_expr_post, e) ;
161+ ensure_sufficient_stack ( || {
162+ self . with_lint_attrs ( e. hir_id , |cx| {
163+ lint_callback ! ( cx, check_expr, e) ;
164+ hir_visit:: walk_expr ( cx, e) ;
165+ lint_callback ! ( cx, check_expr_post, e) ;
166+ } )
164167 } )
165168 }
166169
You can’t perform that action at this time.
0 commit comments