Merge pull request #3184 from rust-lang-nursery/rustup

Add match on StructCtor
This commit is contained in:
Philipp Hansch 2018-09-14 08:41:58 +01:00 committed by GitHub
commit 3df5b44238
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -864,7 +864,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
Def::AssociatedConst(id) |
Def::Macro(id, ..) |
Def::Existential(id) |
Def::AssociatedExistential(id)
Def::AssociatedExistential(id) |
Def::SelfCtor(id)
=> Some(id),
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |