@@ -235,7 +235,7 @@ struct AllTypes {
235
235
traits : FxHashSet < ItemEntry > ,
236
236
macros : FxHashSet < ItemEntry > ,
237
237
functions : FxHashSet < ItemEntry > ,
238
- typedefs : FxHashSet < ItemEntry > ,
238
+ type_aliases : FxHashSet < ItemEntry > ,
239
239
opaque_tys : FxHashSet < ItemEntry > ,
240
240
statics : FxHashSet < ItemEntry > ,
241
241
constants : FxHashSet < ItemEntry > ,
@@ -255,7 +255,7 @@ impl AllTypes {
255
255
traits : new_set ( 100 ) ,
256
256
macros : new_set ( 100 ) ,
257
257
functions : new_set ( 100 ) ,
258
- typedefs : new_set ( 100 ) ,
258
+ type_aliases : new_set ( 100 ) ,
259
259
opaque_tys : new_set ( 100 ) ,
260
260
statics : new_set ( 100 ) ,
261
261
constants : new_set ( 100 ) ,
@@ -279,7 +279,7 @@ impl AllTypes {
279
279
ItemType :: Trait => self . traits . insert ( ItemEntry :: new ( new_url, name) ) ,
280
280
ItemType :: Macro => self . macros . insert ( ItemEntry :: new ( new_url, name) ) ,
281
281
ItemType :: Function => self . functions . insert ( ItemEntry :: new ( new_url, name) ) ,
282
- ItemType :: Typedef => self . typedefs . insert ( ItemEntry :: new ( new_url, name) ) ,
282
+ ItemType :: TypeAlias => self . type_aliases . insert ( ItemEntry :: new ( new_url, name) ) ,
283
283
ItemType :: OpaqueTy => self . opaque_tys . insert ( ItemEntry :: new ( new_url, name) ) ,
284
284
ItemType :: Static => self . statics . insert ( ItemEntry :: new ( new_url, name) ) ,
285
285
ItemType :: Constant => self . constants . insert ( ItemEntry :: new ( new_url, name) ) ,
@@ -317,8 +317,8 @@ impl AllTypes {
317
317
if !self . functions . is_empty ( ) {
318
318
sections. insert ( ItemSection :: Functions ) ;
319
319
}
320
- if !self . typedefs . is_empty ( ) {
321
- sections. insert ( ItemSection :: TypeDefinitions ) ;
320
+ if !self . type_aliases . is_empty ( ) {
321
+ sections. insert ( ItemSection :: TypeAliases ) ;
322
322
}
323
323
if !self . opaque_tys . is_empty ( ) {
324
324
sections. insert ( ItemSection :: OpaqueTypes ) ;
@@ -374,7 +374,7 @@ impl AllTypes {
374
374
print_entries ( f, & self . attribute_macros , ItemSection :: AttributeMacros ) ;
375
375
print_entries ( f, & self . derive_macros , ItemSection :: DeriveMacros ) ;
376
376
print_entries ( f, & self . functions , ItemSection :: Functions ) ;
377
- print_entries ( f, & self . typedefs , ItemSection :: TypeDefinitions ) ;
377
+ print_entries ( f, & self . type_aliases , ItemSection :: TypeAliases ) ;
378
378
print_entries ( f, & self . trait_aliases , ItemSection :: TraitAliases ) ;
379
379
print_entries ( f, & self . opaque_tys , ItemSection :: OpaqueTypes ) ;
380
380
print_entries ( f, & self . statics , ItemSection :: Statics ) ;
@@ -1237,7 +1237,7 @@ fn render_deref_methods(
1237
1237
. iter ( )
1238
1238
. find_map ( |item| match * item. kind {
1239
1239
clean:: AssocTypeItem ( box ref t, _) => Some ( match * t {
1240
- clean:: Typedef { item_type : Some ( ref type_) , .. } => ( type_, & t. type_ ) ,
1240
+ clean:: TypeAlias { item_type : Some ( ref type_) , .. } => ( type_, & t. type_ ) ,
1241
1241
_ => ( & t. type_ , & t. type_ ) ,
1242
1242
} ) ,
1243
1243
_ => None ,
@@ -2035,7 +2035,7 @@ pub(crate) enum ItemSection {
2035
2035
Statics ,
2036
2036
Traits ,
2037
2037
Functions ,
2038
- TypeDefinitions ,
2038
+ TypeAliases ,
2039
2039
Unions ,
2040
2040
Implementations ,
2041
2041
TypeMethods ,
@@ -2067,7 +2067,7 @@ impl ItemSection {
2067
2067
Statics ,
2068
2068
Traits ,
2069
2069
Functions ,
2070
- TypeDefinitions ,
2070
+ TypeAliases ,
2071
2071
Unions ,
2072
2072
Implementations ,
2073
2073
TypeMethods ,
@@ -2093,7 +2093,7 @@ impl ItemSection {
2093
2093
Self :: Unions => "unions" ,
2094
2094
Self :: Enums => "enums" ,
2095
2095
Self :: Functions => "functions" ,
2096
- Self :: TypeDefinitions => "types" ,
2096
+ Self :: TypeAliases => "types" ,
2097
2097
Self :: Statics => "statics" ,
2098
2098
Self :: Constants => "constants" ,
2099
2099
Self :: Traits => "traits" ,
@@ -2123,7 +2123,7 @@ impl ItemSection {
2123
2123
Self :: Unions => "Unions" ,
2124
2124
Self :: Enums => "Enums" ,
2125
2125
Self :: Functions => "Functions" ,
2126
- Self :: TypeDefinitions => "Type Definitions " ,
2126
+ Self :: TypeAliases => "Type Aliases " ,
2127
2127
Self :: Statics => "Statics" ,
2128
2128
Self :: Constants => "Constants" ,
2129
2129
Self :: Traits => "Traits" ,
@@ -2154,7 +2154,7 @@ fn item_ty_to_section(ty: ItemType) -> ItemSection {
2154
2154
ItemType :: Union => ItemSection :: Unions ,
2155
2155
ItemType :: Enum => ItemSection :: Enums ,
2156
2156
ItemType :: Function => ItemSection :: Functions ,
2157
- ItemType :: Typedef => ItemSection :: TypeDefinitions ,
2157
+ ItemType :: TypeAlias => ItemSection :: TypeAliases ,
2158
2158
ItemType :: Static => ItemSection :: Statics ,
2159
2159
ItemType :: Constant => ItemSection :: Constants ,
2160
2160
ItemType :: Trait => ItemSection :: Traits ,
0 commit comments