Merge pull request #3184 from rust-lang-nursery/rustup
Add match on StructCtor
This commit is contained in:
commit
3df5b44238
1 changed files with 2 additions and 1 deletions
|
|
@ -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(..) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue