We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476c528 commit 3e721b1Copy full SHA for 3e721b1
clippy_lints/src/utils/inspector.rs
@@ -109,7 +109,7 @@ impl<'tcx> LateLintPass<'tcx> for DeepCodeInspector {
109
}
110
111
fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx hir::Stmt<'_>) {
112
- if !has_attr(cx.sess(), stmt.kind.attrs(|id| cx.tcx.hir().item(id))) {
+ if !has_attr(cx.sess(), cx.tcx.hir().attrs(stmt.hir_id)) {
113
return;
114
115
match stmt.kind {
0 commit comments