@@ -239,8 +239,8 @@ struct AllTypes {
239
239
opaque_tys : FxHashSet < ItemEntry > ,
240
240
statics : FxHashSet < ItemEntry > ,
241
241
constants : FxHashSet < ItemEntry > ,
242
- attributes : FxHashSet < ItemEntry > ,
243
- derives : FxHashSet < ItemEntry > ,
242
+ attribute_macros : FxHashSet < ItemEntry > ,
243
+ derive_macros : FxHashSet < ItemEntry > ,
244
244
trait_aliases : FxHashSet < ItemEntry > ,
245
245
}
246
246
@@ -259,8 +259,8 @@ impl AllTypes {
259
259
opaque_tys : new_set ( 100 ) ,
260
260
statics : new_set ( 100 ) ,
261
261
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 ) ,
264
264
trait_aliases : new_set ( 100 ) ,
265
265
}
266
266
}
@@ -283,8 +283,10 @@ impl AllTypes {
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) ) ,
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) ) ,
288
290
ItemType :: TraitAlias => self . trait_aliases . insert ( ItemEntry :: new ( new_url, name) ) ,
289
291
_ => true ,
290
292
} ;
@@ -327,10 +329,10 @@ impl AllTypes {
327
329
if !self . constants . is_empty ( ) {
328
330
sections. insert ( ItemSection :: Constants ) ;
329
331
}
330
- if !self . attributes . is_empty ( ) {
332
+ if !self . attribute_macros . is_empty ( ) {
331
333
sections. insert ( ItemSection :: AttributeMacros ) ;
332
334
}
333
- if !self . derives . is_empty ( ) {
335
+ if !self . derive_macros . is_empty ( ) {
334
336
sections. insert ( ItemSection :: DeriveMacros ) ;
335
337
}
336
338
if !self . trait_aliases . is_empty ( ) {
@@ -373,8 +375,8 @@ impl AllTypes {
373
375
print_entries ( f, & self . primitives , ItemSection :: PrimitiveTypes ) ;
374
376
print_entries ( f, & self . traits , ItemSection :: Traits ) ;
375
377
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 ) ;
378
380
print_entries ( f, & self . functions , ItemSection :: Functions ) ;
379
381
print_entries ( f, & self . typedefs , ItemSection :: TypeDefinitions ) ;
380
382
print_entries ( f, & self . trait_aliases , ItemSection :: TraitAliases ) ;
0 commit comments