@@ -239,8 +239,8 @@ struct AllTypes {
239239 opaque_tys : FxHashSet < ItemEntry > ,
240240 statics : FxHashSet < ItemEntry > ,
241241 constants : FxHashSet < ItemEntry > ,
242- attributes : FxHashSet < ItemEntry > ,
243- derives : FxHashSet < ItemEntry > ,
242+ attribute_macros : FxHashSet < ItemEntry > ,
243+ derive_macros : FxHashSet < ItemEntry > ,
244244 trait_aliases : FxHashSet < ItemEntry > ,
245245}
246246
@@ -259,8 +259,8 @@ impl AllTypes {
259259 opaque_tys : new_set ( 100 ) ,
260260 statics : new_set ( 100 ) ,
261261 constants : new_set ( 100 ) ,
262- attributes : new_set ( 100 ) ,
263- derives : new_set ( 100 ) ,
262+ attribute_macros : new_set ( 100 ) ,
263+ derive_macros : new_set ( 100 ) ,
264264 trait_aliases : new_set ( 100 ) ,
265265 }
266266 }
@@ -283,8 +283,10 @@ impl AllTypes {
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) ) ,
286- ItemType :: ProcAttribute => self . attributes . insert ( ItemEntry :: new ( new_url, name) ) ,
287- ItemType :: ProcDerive => self . derives . insert ( ItemEntry :: new ( new_url, name) ) ,
286+ ItemType :: ProcAttribute => {
287+ self . attribute_macros . insert ( ItemEntry :: new ( new_url, name) )
288+ }
289+ ItemType :: ProcDerive => self . derive_macros . insert ( ItemEntry :: new ( new_url, name) ) ,
288290 ItemType :: TraitAlias => self . trait_aliases . insert ( ItemEntry :: new ( new_url, name) ) ,
289291 _ => true ,
290292 } ;
@@ -327,10 +329,10 @@ impl AllTypes {
327329 if !self . constants . is_empty ( ) {
328330 sections. insert ( ItemSection :: Constants ) ;
329331 }
330- if !self . attributes . is_empty ( ) {
332+ if !self . attribute_macros . is_empty ( ) {
331333 sections. insert ( ItemSection :: AttributeMacros ) ;
332334 }
333- if !self . derives . is_empty ( ) {
335+ if !self . derive_macros . is_empty ( ) {
334336 sections. insert ( ItemSection :: DeriveMacros ) ;
335337 }
336338 if !self . trait_aliases . is_empty ( ) {
@@ -373,8 +375,8 @@ impl AllTypes {
373375 print_entries ( f, & self . primitives , ItemSection :: PrimitiveTypes ) ;
374376 print_entries ( f, & self . traits , ItemSection :: Traits ) ;
375377 print_entries ( f, & self . macros , ItemSection :: Macros ) ;
376- print_entries ( f, & self . attributes , ItemSection :: AttributeMacros ) ;
377- print_entries ( f, & self . derives , ItemSection :: DeriveMacros ) ;
378+ print_entries ( f, & self . attribute_macros , ItemSection :: AttributeMacros ) ;
379+ print_entries ( f, & self . derive_macros , ItemSection :: DeriveMacros ) ;
378380 print_entries ( f, & self . functions , ItemSection :: Functions ) ;
379381 print_entries ( f, & self . typedefs , ItemSection :: TypeDefinitions ) ;
380382 print_entries ( f, & self . trait_aliases , ItemSection :: TraitAliases ) ;
0 commit comments