From bee56e68a3e6b8d70bd8320f6372b95959e377df Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sat, 15 Aug 2020 15:34:56 +0200 Subject: Hacky support for fn-like proc macros --- crates/proc_macro_api/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/proc_macro_api/src') diff --git a/crates/proc_macro_api/src/lib.rs b/crates/proc_macro_api/src/lib.rs index 15db57eb2..d5e87cf7d 100644 --- a/crates/proc_macro_api/src/lib.rs +++ b/crates/proc_macro_api/src/lib.rs @@ -89,9 +89,8 @@ impl ProcMacroClient { macros .into_iter() .filter_map(|(name, kind)| { - // FIXME: Support custom derive only for now. match kind { - ProcMacroKind::CustomDerive => { + ProcMacroKind::CustomDerive | ProcMacroKind::FuncLike => { let name = SmolStr::new(&name); let expander: Arc = Arc::new(ProcMacroProcessExpander { @@ -101,7 +100,8 @@ impl ProcMacroClient { }); Some((name, expander)) } - _ => None, + // FIXME: Attribute macro are currently unsupported. + ProcMacroKind::Attr => None, } }) .collect() -- cgit v1.2.3