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.
1 parent cb816b1 commit bee56e6Copy full SHA for bee56e6
crates/proc_macro_api/src/lib.rs
@@ -89,9 +89,8 @@ impl ProcMacroClient {
89
macros
90
.into_iter()
91
.filter_map(|(name, kind)| {
92
- // FIXME: Support custom derive only for now.
93
match kind {
94
- ProcMacroKind::CustomDerive => {
+ ProcMacroKind::CustomDerive | ProcMacroKind::FuncLike => {
95
let name = SmolStr::new(&name);
96
let expander: Arc<dyn tt::TokenExpander> =
97
Arc::new(ProcMacroProcessExpander {
@@ -101,7 +100,8 @@ impl ProcMacroClient {
101
100
});
102
Some((name, expander))
103
}
104
- _ => None,
+ // FIXME: Attribute macro are currently unsupported.
+ ProcMacroKind::Attr => None,
105
106
})
107
.collect()
0 commit comments