Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

macro_rules! doesn't work #107

Open
jethrogb opened this issue Dec 14, 2016 · 0 comments
Open

macro_rules! doesn't work #107

jethrogb opened this issue Dec 14, 2016 · 0 comments

Comments

@jethrogb
Copy link

If you register the macro_rules! macro like so:

let mut reg = syntex::Registry::new();
reg.add_ident_macro("macro_rules",syntex_syntax::ext::tt::macro_rules::MacroRulesExpander);

you'll get this error:

error: internal compiler error: add_macro is not supported yet
 --> src/main.rs.in:1:1
  |
1 | macro_rules! ...
  | ^

Which seems to be related to https://github.com/serde-rs/syntex/blob/389b280/syntex/src/resolver.rs#L39-L43

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant