File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
use crate :: { passes:: LateLintPassObject , LateContext , LateLintPass , LintStore } ;
18
18
use rustc_ast as ast;
19
+ use rustc_data_structures:: stack:: ensure_sufficient_stack;
19
20
use rustc_data_structures:: sync:: { join, DynSend } ;
20
21
use rustc_hir as hir;
21
22
use rustc_hir:: def_id:: LocalDefId ;
@@ -157,10 +158,12 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
157
158
}
158
159
159
160
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
+ } )
164
167
} )
165
168
}
166
169
You can’t perform that action at this time.
0 commit comments