@@ -235,7 +235,7 @@ struct AllTypes {
235235 traits : FxHashSet < ItemEntry > ,
236236 macros : FxHashSet < ItemEntry > ,
237237 functions : FxHashSet < ItemEntry > ,
238- typedefs : FxHashSet < ItemEntry > ,
238+ type_aliases : FxHashSet < ItemEntry > ,
239239 opaque_tys : FxHashSet < ItemEntry > ,
240240 statics : FxHashSet < ItemEntry > ,
241241 constants : FxHashSet < ItemEntry > ,
@@ -255,7 +255,7 @@ impl AllTypes {
255255 traits : new_set ( 100 ) ,
256256 macros : new_set ( 100 ) ,
257257 functions : new_set ( 100 ) ,
258- typedefs : new_set ( 100 ) ,
258+ type_aliases : new_set ( 100 ) ,
259259 opaque_tys : new_set ( 100 ) ,
260260 statics : new_set ( 100 ) ,
261261 constants : new_set ( 100 ) ,
@@ -279,7 +279,7 @@ impl AllTypes {
279279 ItemType :: Trait => self . traits . insert ( ItemEntry :: new ( new_url, name) ) ,
280280 ItemType :: Macro => self . macros . insert ( ItemEntry :: new ( new_url, name) ) ,
281281 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) ) ,
283283 ItemType :: OpaqueTy => self . opaque_tys . insert ( ItemEntry :: new ( new_url, name) ) ,
284284 ItemType :: Static => self . statics . insert ( ItemEntry :: new ( new_url, name) ) ,
285285 ItemType :: Constant => self . constants . insert ( ItemEntry :: new ( new_url, name) ) ,
@@ -317,8 +317,8 @@ impl AllTypes {
317317 if !self . functions . is_empty ( ) {
318318 sections. insert ( ItemSection :: Functions ) ;
319319 }
320- if !self . typedefs . is_empty ( ) {
321- sections. insert ( ItemSection :: TypeDefinitions ) ;
320+ if !self . type_aliases . is_empty ( ) {
321+ sections. insert ( ItemSection :: TypeAliases ) ;
322322 }
323323 if !self . opaque_tys . is_empty ( ) {
324324 sections. insert ( ItemSection :: OpaqueTypes ) ;
@@ -374,7 +374,7 @@ impl AllTypes {
374374 print_entries ( f, & self . attribute_macros , ItemSection :: AttributeMacros ) ;
375375 print_entries ( f, & self . derive_macros , ItemSection :: DeriveMacros ) ;
376376 print_entries ( f, & self . functions , ItemSection :: Functions ) ;
377- print_entries ( f, & self . typedefs , ItemSection :: TypeDefinitions ) ;
377+ print_entries ( f, & self . type_aliases , ItemSection :: TypeAliases ) ;
378378 print_entries ( f, & self . trait_aliases , ItemSection :: TraitAliases ) ;
379379 print_entries ( f, & self . opaque_tys , ItemSection :: OpaqueTypes ) ;
380380 print_entries ( f, & self . statics , ItemSection :: Statics ) ;
@@ -1237,7 +1237,7 @@ fn render_deref_methods(
12371237 . iter ( )
12381238 . find_map ( |item| match * item. kind {
12391239 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_ ) ,
12411241 _ => ( & t. type_ , & t. type_ ) ,
12421242 } ) ,
12431243 _ => None ,
@@ -2035,7 +2035,7 @@ pub(crate) enum ItemSection {
20352035 Statics ,
20362036 Traits ,
20372037 Functions ,
2038- TypeDefinitions ,
2038+ TypeAliases ,
20392039 Unions ,
20402040 Implementations ,
20412041 TypeMethods ,
@@ -2067,7 +2067,7 @@ impl ItemSection {
20672067 Statics ,
20682068 Traits ,
20692069 Functions ,
2070- TypeDefinitions ,
2070+ TypeAliases ,
20712071 Unions ,
20722072 Implementations ,
20732073 TypeMethods ,
@@ -2093,7 +2093,7 @@ impl ItemSection {
20932093 Self :: Unions => "unions" ,
20942094 Self :: Enums => "enums" ,
20952095 Self :: Functions => "functions" ,
2096- Self :: TypeDefinitions => "types" ,
2096+ Self :: TypeAliases => "types" ,
20972097 Self :: Statics => "statics" ,
20982098 Self :: Constants => "constants" ,
20992099 Self :: Traits => "traits" ,
@@ -2123,7 +2123,7 @@ impl ItemSection {
21232123 Self :: Unions => "Unions" ,
21242124 Self :: Enums => "Enums" ,
21252125 Self :: Functions => "Functions" ,
2126- Self :: TypeDefinitions => "Type Definitions " ,
2126+ Self :: TypeAliases => "Type Aliases " ,
21272127 Self :: Statics => "Statics" ,
21282128 Self :: Constants => "Constants" ,
21292129 Self :: Traits => "Traits" ,
@@ -2154,7 +2154,7 @@ fn item_ty_to_section(ty: ItemType) -> ItemSection {
21542154 ItemType :: Union => ItemSection :: Unions ,
21552155 ItemType :: Enum => ItemSection :: Enums ,
21562156 ItemType :: Function => ItemSection :: Functions ,
2157- ItemType :: Typedef => ItemSection :: TypeDefinitions ,
2157+ ItemType :: TypeAlias => ItemSection :: TypeAliases ,
21582158 ItemType :: Static => ItemSection :: Statics ,
21592159 ItemType :: Constant => ItemSection :: Constants ,
21602160 ItemType :: Trait => ItemSection :: Traits ,
0 commit comments