We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae6ea84 commit 8ef759eCopy full SHA for 8ef759e
clippy_lints/src/utils/mod.rs
@@ -941,7 +941,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
941
Def::AssociatedExistential(id) |
942
Def::GlobalAsm(id) => Some(id),
943
944
- Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,
+ Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |
945
+ Def::ToolMod | Def::NonMacroAttr | Def::Err => None,
946
}
947
948
tests/ui/author/for_loop.rs
@@ -1,4 +1,4 @@
1
-#![feature(tool_attributes)]
+#![feature(tool_attributes, stmt_expr_attributes)]
2
3
fn main() {
4
#[clippy::author]
0 commit comments