We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb784b7 commit 95ce1ebCopy full SHA for 95ce1eb
src/librustc/middle/def.rs
@@ -142,13 +142,15 @@ impl Def {
142
143
DefLocal(id) |
144
DefUpvar(id, _, _) |
145
- DefLabel(id) |
146
DefSelfTy(_, Some((_, id))) => {
147
DefId::xxx_local(id) // TODO, clearly
148
}
149
150
- DefPrimTy(_) => panic!("attempted .def_id() on DefPrimTy"),
151
- DefSelfTy(..) => panic!("attempted .def_id() on invalid DefSelfTy"),
+ DefLabel(..) |
+ DefPrimTy(..) |
+ DefSelfTy(..) => {
152
+ panic!("attempted .def_id() on invalid def: {:?}", self)
153
+ }
154
155
156
0 commit comments