Fix lints for latest nightly.

This commit is contained in:
Sergio Benitez 2017-04-16 14:13:18 -07:00
parent 355da8a1ba
commit 153e7f0480
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ impl DefExt for Def {
| Def::AssociatedTy(id) | Def::TyParam(id) | Def::Struct(id)
| Def::StructCtor(id, ..) | Def::Union(id) | Def::Trait(id)
| Def::Method(id) | Def::Const(id) | Def::AssociatedConst(id)
| Def::Local(id) | Def::Upvar(id, ..) | Def::Macro(id, ..) => Some(id),
| Def::Local(id) | Def::Upvar(id, ..) | Def::Macro(id, ..)
| Def::GlobalAsm(id) => Some(id),
Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,
}
}