mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Move DefLabel out from the def_id() results
This commit is contained in:
parent
cb784b70ba
commit
95ce1ebe7c
@ -142,13 +142,15 @@ impl Def {
|
||||
|
||||
DefLocal(id) |
|
||||
DefUpvar(id, _, _) |
|
||||
DefLabel(id) |
|
||||
DefSelfTy(_, Some((_, id))) => {
|
||||
DefId::xxx_local(id) // TODO, clearly
|
||||
}
|
||||
|
||||
DefPrimTy(_) => panic!("attempted .def_id() on DefPrimTy"),
|
||||
DefSelfTy(..) => panic!("attempted .def_id() on invalid DefSelfTy"),
|
||||
DefLabel(..) |
|
||||
DefPrimTy(..) |
|
||||
DefSelfTy(..) => {
|
||||
panic!("attempted .def_id() on invalid def: {:?}", self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user