@@ -53,13 +53,13 @@ pub enum Def {
5353 Existential ( DefId ) ,
5454 /// `type Foo = Bar;`
5555 TyAlias ( DefId ) ,
56- Foreign ( DefId ) ,
56+ TyForeign ( DefId ) ,
5757 TraitAlias ( DefId ) ,
5858 AssociatedTy ( DefId ) ,
5959 /// `existential type Foo: Bar;`
6060 AssociatedExistential ( DefId ) ,
6161 PrimTy ( hir:: PrimTy ) ,
62- Param ( DefId ) ,
62+ TyParam ( DefId ) ,
6363 SelfTy ( Option < DefId > /* trait */ , Option < DefId > /* impl */ ) ,
6464 ToolMod , // e.g. `rustfmt` in `#[rustfmt::skip]`
6565
@@ -269,10 +269,10 @@ impl Def {
269269 Def :: Fn ( id) | Def :: Mod ( id) | Def :: Static ( id, _) |
270270 Def :: Variant ( id) | Def :: VariantCtor ( id, ..) | Def :: Enum ( id) |
271271 Def :: TyAlias ( id) | Def :: TraitAlias ( id) |
272- Def :: AssociatedTy ( id) | Def :: Param ( id) | Def :: Struct ( id) | Def :: StructCtor ( id, ..) |
272+ Def :: AssociatedTy ( id) | Def :: TyParam ( id) | Def :: Struct ( id) | Def :: StructCtor ( id, ..) |
273273 Def :: Union ( id) | Def :: Trait ( id) | Def :: Method ( id) | Def :: Const ( id) |
274274 Def :: AssociatedConst ( id) | Def :: Macro ( id, ..) |
275- Def :: Existential ( id) | Def :: AssociatedExistential ( id) | Def :: Foreign ( id) => {
275+ Def :: Existential ( id) | Def :: AssociatedExistential ( id) | Def :: TyForeign ( id) => {
276276 id
277277 }
278278
@@ -311,11 +311,11 @@ impl Def {
311311 Def :: StructCtor ( .., CtorKind :: Fictive ) => bug ! ( "impossible struct constructor" ) ,
312312 Def :: Union ( ..) => "union" ,
313313 Def :: Trait ( ..) => "trait" ,
314- Def :: Foreign ( ..) => "foreign type" ,
314+ Def :: TyForeign ( ..) => "foreign type" ,
315315 Def :: Method ( ..) => "method" ,
316316 Def :: Const ( ..) => "constant" ,
317317 Def :: AssociatedConst ( ..) => "associated constant" ,
318- Def :: Param ( ..) => "type parameter" ,
318+ Def :: TyParam ( ..) => "type parameter" ,
319319 Def :: PrimTy ( ..) => "builtin type" ,
320320 Def :: Local ( ..) => "local variable" ,
321321 Def :: Upvar ( ..) => "closure capture" ,
0 commit comments