We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
impl From<DefKind> for ItemType
1 parent a344282 commit 6c066abCopy full SHA for 6c066ab
src/librustdoc/formats/item_type.rs
@@ -116,7 +116,11 @@ impl From<DefKind> for ItemType {
116
DefKind::Trait => Self::Trait,
117
DefKind::TyAlias => Self::Typedef,
118
DefKind::TraitAlias => Self::TraitAlias,
119
- DefKind::Macro(_) => Self::Macro,
+ DefKind::Macro(kind) => match kind {
120
+ MacroKind::Bang => ItemType::Macro,
121
+ MacroKind::Attr => ItemType::ProcAttribute,
122
+ MacroKind::Derive => ItemType::ProcDerive,
123
+ },
124
DefKind::ForeignTy
125
| DefKind::Variant
126
| DefKind::AssocTy
0 commit comments