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 {
130130 }
131131
132132 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 ) ) ) {
134134 return ;
135135 }
136136 prelude ( ) ;
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl<'tcx> LateLintPass<'tcx> for DeepCodeInspector {
109109 }
110110
111111 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 ) ) ) {
113113 return ;
114114 }
115115 match stmt. kind {
You can’t perform that action at this time.
0 commit comments