@@ -302,7 +302,7 @@ impl<'hir> Map<'hir> {
302
302
ItemKind :: Fn ( ..) => DefKind :: Fn ,
303
303
ItemKind :: Mod ( ..) => DefKind :: Mod ,
304
304
ItemKind :: OpaqueTy ( ..) => DefKind :: OpaqueTy ,
305
- ItemKind :: Ty ( ..) => DefKind :: TyAlias ,
305
+ ItemKind :: TyAlias ( ..) => DefKind :: TyAlias ,
306
306
ItemKind :: Enum ( ..) => DefKind :: Enum ,
307
307
ItemKind :: Struct ( ..) => DefKind :: Struct ,
308
308
ItemKind :: Union ( ..) => DefKind :: Union ,
@@ -333,7 +333,7 @@ impl<'hir> Map<'hir> {
333
333
match item. node {
334
334
ImplItemKind :: Const ( ..) => DefKind :: AssocConst ,
335
335
ImplItemKind :: Method ( ..) => DefKind :: Method ,
336
- ImplItemKind :: Type ( ..) => DefKind :: AssocTy ,
336
+ ImplItemKind :: TyAlias ( ..) => DefKind :: AssocTy ,
337
337
ImplItemKind :: OpaqueTy ( ..) => DefKind :: AssocOpaqueTy ,
338
338
}
339
339
}
@@ -576,7 +576,7 @@ impl<'hir> Map<'hir> {
576
576
Node :: Item ( ref item) => {
577
577
match item. node {
578
578
ItemKind :: Fn ( _, _, ref generics, _) |
579
- ItemKind :: Ty ( _, ref generics) |
579
+ ItemKind :: TyAlias ( _, ref generics) |
580
580
ItemKind :: Enum ( _, ref generics) |
581
581
ItemKind :: Struct ( _, ref generics) |
582
582
ItemKind :: Union ( _, ref generics) |
@@ -1269,7 +1269,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
1269
1269
ItemKind :: Mod ( ..) => "mod" ,
1270
1270
ItemKind :: ForeignMod ( ..) => "foreign mod" ,
1271
1271
ItemKind :: GlobalAsm ( ..) => "global asm" ,
1272
- ItemKind :: Ty ( ..) => "ty" ,
1272
+ ItemKind :: TyAlias ( ..) => "ty" ,
1273
1273
ItemKind :: OpaqueTy ( ..) => "opaque type" ,
1274
1274
ItemKind :: Enum ( ..) => "enum" ,
1275
1275
ItemKind :: Struct ( ..) => "struct" ,
@@ -1291,7 +1291,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
1291
1291
ImplItemKind :: Method ( ..) => {
1292
1292
format ! ( "method {} in {}{}" , ii. ident, path_str( ) , id_str)
1293
1293
}
1294
- ImplItemKind :: Type ( _) => {
1294
+ ImplItemKind :: TyAlias ( _) => {
1295
1295
format ! ( "assoc type {} in {}{}" , ii. ident, path_str( ) , id_str)
1296
1296
}
1297
1297
ImplItemKind :: OpaqueTy ( _) => {
0 commit comments