@@ -33,10 +33,8 @@ pub struct EarlyContextAndPass<'ecx, 'tcx, T: EarlyLintPass> {
33
33
}
34
34
35
35
impl < ' ecx , ' tcx , T : EarlyLintPass > EarlyContextAndPass < ' ecx , ' tcx , T > {
36
- // This always-inlined function is for the hot call site.
37
- #[ inline( always) ]
38
36
#[ allow( rustc:: diagnostic_outside_of_impl) ]
39
- fn inlined_check_id ( & mut self , id : ast:: NodeId ) {
37
+ fn check_id ( & mut self , id : ast:: NodeId ) {
40
38
for early_lint in self . context . buffered . take ( id) {
41
39
let BufferedEarlyLint { span, node_id : _, lint_id, diagnostic } = early_lint;
42
40
self . context . opt_span_lint ( lint_id. lint , span, |diag| {
@@ -45,11 +43,6 @@ impl<'ecx, 'tcx, T: EarlyLintPass> EarlyContextAndPass<'ecx, 'tcx, T> {
45
43
}
46
44
}
47
45
48
- // This non-inlined function is for the cold call sites.
49
- fn check_id ( & mut self , id : ast:: NodeId ) {
50
- self . inlined_check_id ( id)
51
- }
52
-
53
46
/// Merge the lints specified by any lint attributes into the
54
47
/// current lint context, call the provided function, then reset the
55
48
/// lints in effect to their previous state.
@@ -61,7 +54,6 @@ impl<'ecx, 'tcx, T: EarlyLintPass> EarlyContextAndPass<'ecx, 'tcx, T> {
61
54
debug ! ( ?id) ;
62
55
let push = self . context . builder . push ( attrs, is_crate_node, None ) ;
63
56
64
- self . inlined_check_id ( id) ;
65
57
debug ! ( "early context: enter_attrs({:?})" , attrs) ;
66
58
lint_callback ! ( self , check_attributes, attrs) ;
67
59
ensure_sufficient_stack ( || f ( self ) ) ;
0 commit comments