mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Fix fallout from rust-lang/rust#52841
This commit is contained in:
parent
ae6ea84924
commit
8ef759e027
2 changed files with 3 additions and 2 deletions
|
@ -941,7 +941,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
|
|||
Def::AssociatedExistential(id) |
|
||||
Def::GlobalAsm(id) => Some(id),
|
||||
|
||||
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,
|
||||
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |
|
||||
Def::ToolMod | Def::NonMacroAttr | Def::Err => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(tool_attributes)]
|
||||
#![feature(tool_attributes, stmt_expr_attributes)]
|
||||
|
||||
fn main() {
|
||||
#[clippy::author]
|
||||
|
|
Loading…
Add table
Reference in a new issue