Rustup
This commit is contained in:
@@ -938,8 +938,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
|
||||
Def::AssociatedConst(id) |
|
||||
Def::Macro(id, ..) |
|
||||
Def::Existential(id) |
|
||||
Def::AssociatedExistential(id) |
|
||||
Def::GlobalAsm(id) => Some(id),
|
||||
Def::AssociatedExistential(id)
|
||||
=> Some(id),
|
||||
|
||||
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |
|
||||
Def::ToolMod | Def::NonMacroAttr | Def::Err => None,
|
||||
|
||||
Reference in New Issue
Block a user