@@ -99,6 +99,8 @@ item_type! {
9999 // This number is reserved for use in JavaScript
100100 // Generic = 26,
101101 Attribute = 27 ,
102+ BangMacroAttribute = 28 ,
103+ BangMacroDerive = 29 ,
102104}
103105
104106impl < ' a > From < & ' a clean:: Item > for ItemType {
@@ -128,10 +130,8 @@ impl<'a> From<&'a clean::Item> for ItemType {
128130 clean:: ForeignFunctionItem ( ..) => ItemType :: Function , // no ForeignFunction
129131 clean:: ForeignStaticItem ( ..) => ItemType :: Static , // no ForeignStatic
130132 clean:: MacroItem ( ..) => ItemType :: Macro ,
131- // Is this a good idea?
132- clean:: AttrMacroItem => ItemType :: ProcAttribute ,
133- // Is this a good idea?
134- clean:: DeriveMacroItem => ItemType :: ProcDerive ,
133+ clean:: AttrMacroItem => ItemType :: BangMacroAttribute ,
134+ clean:: DeriveMacroItem => ItemType :: BangMacroDerive ,
135135 clean:: PrimitiveItem ( ..) => ItemType :: Primitive ,
136136 clean:: RequiredAssocConstItem ( ..)
137137 | clean:: ProvidedAssocConstItem ( ..)
@@ -225,8 +225,8 @@ impl ItemType {
225225 ItemType :: AssocConst => "associatedconstant" ,
226226 ItemType :: ForeignType => "foreigntype" ,
227227 ItemType :: Keyword => "keyword" ,
228- ItemType :: ProcAttribute => "attr" ,
229- ItemType :: ProcDerive => "derive" ,
228+ ItemType :: ProcAttribute | ItemType :: BangMacroAttribute => "attr" ,
229+ ItemType :: ProcDerive | ItemType :: BangMacroDerive => "derive" ,
230230 ItemType :: TraitAlias => "traitalias" ,
231231 ItemType :: Attribute => "attribute" ,
232232 }
0 commit comments