@@ -1596,6 +1596,8 @@ struct AllTypes {
1596
1596
statics : FxHashSet < ItemEntry > ,
1597
1597
constants : FxHashSet < ItemEntry > ,
1598
1598
keywords : FxHashSet < ItemEntry > ,
1599
+ attributes : FxHashSet < ItemEntry > ,
1600
+ derives : FxHashSet < ItemEntry > ,
1599
1601
}
1600
1602
1601
1603
impl AllTypes {
@@ -1614,6 +1616,8 @@ impl AllTypes {
1614
1616
statics : new_set ( 100 ) ,
1615
1617
constants : new_set ( 100 ) ,
1616
1618
keywords : new_set ( 100 ) ,
1619
+ attributes : new_set ( 100 ) ,
1620
+ derives : new_set ( 100 ) ,
1617
1621
}
1618
1622
}
1619
1623
@@ -1635,6 +1639,8 @@ impl AllTypes {
1635
1639
ItemType :: Existential => self . existentials . insert ( ItemEntry :: new ( new_url, name) ) ,
1636
1640
ItemType :: Static => self . statics . insert ( ItemEntry :: new ( new_url, name) ) ,
1637
1641
ItemType :: Constant => self . constants . insert ( ItemEntry :: new ( new_url, name) ) ,
1642
+ ItemType :: ProcAttribute => self . attributes . insert ( ItemEntry :: new ( new_url, name) ) ,
1643
+ ItemType :: ProcDerive => self . derives . insert ( ItemEntry :: new ( new_url, name) ) ,
1638
1644
_ => true ,
1639
1645
} ;
1640
1646
}
@@ -1674,6 +1680,8 @@ impl fmt::Display for AllTypes {
1674
1680
print_entries ( f, & self . primitives , "Primitives" , "primitives" ) ?;
1675
1681
print_entries ( f, & self . traits , "Traits" , "traits" ) ?;
1676
1682
print_entries ( f, & self . macros , "Macros" , "macros" ) ?;
1683
+ print_entries ( f, & self . attributes , "Attribute Macros" , "attributes" ) ?;
1684
+ print_entries ( f, & self . derives , "Derive Macros" , "derives" ) ?;
1677
1685
print_entries ( f, & self . functions , "Functions" , "functions" ) ?;
1678
1686
print_entries ( f, & self . typedefs , "Typedefs" , "typedefs" ) ?;
1679
1687
print_entries ( f, & self . existentials , "Existentials" , "existentials" ) ?;
0 commit comments