This commit is contained in:
Alex Crichton 2018-08-02 18:08:22 -07:00
parent ae6ea84924
commit 8ef759e027
2 changed files with 3 additions and 2 deletions

View file

@ -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,
}
}

View file

@ -1,4 +1,4 @@
#![feature(tool_attributes)]
#![feature(tool_attributes, stmt_expr_attributes)]
fn main() {
#[clippy::author]