File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ impl<'tcx> LateLintPass<'tcx> for Author {
130
130
}
131
131
132
132
fn check_stmt ( & mut self , cx : & LateContext < ' tcx > , stmt : & ' tcx hir:: Stmt < ' _ > ) {
133
- if !has_attr ( cx. sess ( ) , stmt. kind . attrs ( ) ) {
133
+ if !has_attr ( cx. sess ( ) , stmt. kind . attrs ( |id| cx . tcx . hir ( ) . item ( id . id ) ) ) {
134
134
return ;
135
135
}
136
136
prelude ( ) ;
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl<'tcx> LateLintPass<'tcx> for DeepCodeInspector {
109
109
}
110
110
111
111
fn check_stmt ( & mut self , cx : & LateContext < ' tcx > , stmt : & ' tcx hir:: Stmt < ' _ > ) {
112
- if !has_attr ( cx. sess ( ) , stmt. kind . attrs ( ) ) {
112
+ if !has_attr ( cx. sess ( ) , stmt. kind . attrs ( |id| cx . tcx . hir ( ) . item ( id . id ) ) ) {
113
113
return ;
114
114
}
115
115
match stmt. kind {
You can’t perform that action at this time.
0 commit comments