@@ -35,7 +35,6 @@ pub enum Def {
3535 DefTrait ( DefId ) ,
3636 DefPrimTy ( hir:: PrimTy ) ,
3737 DefTyParam ( ParamSpace , u32 , DefId , ast:: Name ) ,
38- DefUse ( DefId ) ,
3938 DefUpvar ( DefId , // def id of closed over local
4039 ast:: NodeId , // node id of closed over local
4140 usize , // index in the freevars list of the closure
@@ -123,7 +122,7 @@ impl Def {
123122
124123 DefFn ( ..) | DefMod ( ..) | DefForeignMod ( ..) | DefStatic ( ..) |
125124 DefVariant ( ..) | DefTy ( ..) | DefAssociatedTy ( ..) |
126- DefTyParam ( ..) | DefUse ( .. ) | DefStruct ( ..) | DefTrait ( ..) |
125+ DefTyParam ( ..) | DefStruct ( ..) | DefTrait ( ..) |
127126 DefMethod ( ..) | DefConst ( ..) | DefAssociatedConst ( ..) |
128127 DefPrimTy ( ..) | DefLabel ( ..) | DefSelfTy ( ..) | DefErr => {
129128 panic ! ( "attempted .def_id() on invalid {:?}" , self )
@@ -135,7 +134,7 @@ impl Def {
135134 match * self {
136135 DefFn ( id, _) | DefMod ( id) | DefForeignMod ( id) | DefStatic ( id, _) |
137136 DefVariant ( _, id, _) | DefTy ( id, _) | DefAssociatedTy ( _, id) |
138- DefTyParam ( _, _, id, _) | DefUse ( id ) | DefStruct ( id) | DefTrait ( id) |
137+ DefTyParam ( _, _, id, _) | DefStruct ( id) | DefTrait ( id) |
139138 DefMethod ( id) | DefConst ( id) | DefAssociatedConst ( id) |
140139 DefLocal ( id, _) | DefUpvar ( id, _, _, _) => {
141140 id
0 commit comments