@@ -12,7 +12,7 @@ pub(crate) enum Kind {
1212 Enum ,
1313 Variant ,
1414 Function ,
15- Typedef ,
15+ TypeAlias ,
1616 OpaqueTy ,
1717 Constant ,
1818 Trait ,
@@ -45,7 +45,7 @@ impl Kind {
4545 Trait => true ,
4646 TraitAlias => true ,
4747 Impl => true ,
48- Typedef => true ,
48+ TypeAlias => true ,
4949 Constant => true ,
5050 Static => true ,
5151 Macro => true ,
@@ -98,7 +98,7 @@ impl Kind {
9898 Kind :: Union => false ,
9999 Kind :: Enum => false ,
100100 Kind :: Variant => false ,
101- Kind :: Typedef => false ,
101+ Kind :: TypeAlias => false ,
102102 Kind :: OpaqueTy => false ,
103103 Kind :: Constant => false ,
104104 Kind :: Trait => false ,
@@ -131,7 +131,7 @@ impl Kind {
131131 matches ! ( self , Kind :: Trait | Kind :: TraitAlias )
132132 }
133133 pub fn is_type ( self ) -> bool {
134- matches ! ( self , Kind :: Struct | Kind :: Enum | Kind :: Union | Kind :: Typedef )
134+ matches ! ( self , Kind :: Struct | Kind :: Enum | Kind :: Union | Kind :: TypeAlias )
135135 }
136136
137137 pub fn from_item ( i : & Item ) -> Self {
@@ -148,7 +148,7 @@ impl Kind {
148148 ItemEnum :: Trait ( _) => Trait ,
149149 ItemEnum :: TraitAlias ( _) => TraitAlias ,
150150 ItemEnum :: Impl ( _) => Impl ,
151- ItemEnum :: TypeAlias ( _) => Typedef ,
151+ ItemEnum :: TypeAlias ( _) => TypeAlias ,
152152 ItemEnum :: OpaqueTy ( _) => OpaqueTy ,
153153 ItemEnum :: Constant ( _) => Constant ,
154154 ItemEnum :: Static ( _) => Static ,
@@ -186,7 +186,7 @@ impl Kind {
186186 ItemKind :: StructField => StructField ,
187187 ItemKind :: Trait => Trait ,
188188 ItemKind :: TraitAlias => TraitAlias ,
189- ItemKind :: TypeAlias => Typedef ,
189+ ItemKind :: TypeAlias => TypeAlias ,
190190 ItemKind :: Union => Union ,
191191 ItemKind :: Variant => Variant ,
192192 }
0 commit comments