@@ -35,7 +35,6 @@ pub enum Def {
35
35
DefTrait ( DefId ) ,
36
36
DefPrimTy ( hir:: PrimTy ) ,
37
37
DefTyParam ( ParamSpace , u32 , DefId , ast:: Name ) ,
38
- DefUse ( DefId ) ,
39
38
DefUpvar ( DefId , // def id of closed over local
40
39
ast:: NodeId , // node id of closed over local
41
40
usize , // index in the freevars list of the closure
@@ -123,7 +122,7 @@ impl Def {
123
122
124
123
DefFn ( ..) | DefMod ( ..) | DefForeignMod ( ..) | DefStatic ( ..) |
125
124
DefVariant ( ..) | DefTy ( ..) | DefAssociatedTy ( ..) |
126
- DefTyParam ( ..) | DefUse ( .. ) | DefStruct ( ..) | DefTrait ( ..) |
125
+ DefTyParam ( ..) | DefStruct ( ..) | DefTrait ( ..) |
127
126
DefMethod ( ..) | DefConst ( ..) | DefAssociatedConst ( ..) |
128
127
DefPrimTy ( ..) | DefLabel ( ..) | DefSelfTy ( ..) | DefErr => {
129
128
panic ! ( "attempted .def_id() on invalid {:?}" , self )
@@ -135,7 +134,7 @@ impl Def {
135
134
match * self {
136
135
DefFn ( id, _) | DefMod ( id) | DefForeignMod ( id) | DefStatic ( id, _) |
137
136
DefVariant ( _, id, _) | DefTy ( id, _) | DefAssociatedTy ( _, id) |
138
- DefTyParam ( _, _, id, _) | DefUse ( id ) | DefStruct ( id) | DefTrait ( id) |
137
+ DefTyParam ( _, _, id, _) | DefStruct ( id) | DefTrait ( id) |
139
138
DefMethod ( id) | DefConst ( id) | DefAssociatedConst ( id) |
140
139
DefLocal ( id, _) | DefUpvar ( id, _, _, _) => {
141
140
id
0 commit comments