Skip to content

Commit bee56e6

Browse files
Hacky support for fn-like proc macros
1 parent cb816b1 commit bee56e6

File tree

1 file changed

+3
-3
lines changed
  • crates/proc_macro_api/src

1 file changed

+3
-3
lines changed

crates/proc_macro_api/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ impl ProcMacroClient {
8989
macros
9090
.into_iter()
9191
.filter_map(|(name, kind)| {
92-
// FIXME: Support custom derive only for now.
9392
match kind {
94-
ProcMacroKind::CustomDerive => {
93+
ProcMacroKind::CustomDerive | ProcMacroKind::FuncLike => {
9594
let name = SmolStr::new(&name);
9695
let expander: Arc<dyn tt::TokenExpander> =
9796
Arc::new(ProcMacroProcessExpander {
@@ -101,7 +100,8 @@ impl ProcMacroClient {
101100
});
102101
Some((name, expander))
103102
}
104-
_ => None,
103+
// FIXME: Attribute macro are currently unsupported.
104+
ProcMacroKind::Attr => None,
105105
}
106106
})
107107
.collect()

0 commit comments

Comments
 (0)