Skip to content

Commit 8ef759e

Browse files
committed
Fix fallout from rust-lang/rust#52841
1 parent ae6ea84 commit 8ef759e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clippy_lints/src/utils/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
941941
Def::AssociatedExistential(id) |
942942
Def::GlobalAsm(id) => Some(id),
943943

944-
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,
944+
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |
945+
Def::ToolMod | Def::NonMacroAttr | Def::Err => None,
945946
}
946947
}
947948

tests/ui/author/for_loop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(tool_attributes)]
1+
#![feature(tool_attributes, stmt_expr_attributes)]
22

33
fn main() {
44
#[clippy::author]

0 commit comments

Comments
 (0)