Fix fallout from rust-lang/rust#52841
This commit is contained in:
parent
ae6ea84924
commit
8ef759e027
@ -941,7 +941,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
|
|||||||
Def::AssociatedExistential(id) |
|
Def::AssociatedExistential(id) |
|
||||||
Def::GlobalAsm(id) => Some(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() {
|
fn main() {
|
||||||
#[clippy::author]
|
#[clippy::author]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user