-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
declarative macro compilation fails with serde derive #42708
Comments
cc @jseyfried - looks like hygiene running amok. |
Merged
Sorry for the delay getting to this; fixed in #46343. |
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Nov 30, 2017
Fix hygiene bug. Fixes rust-lang#42708. r? @nrc
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Nov 30, 2017
Fix hygiene bug. Fixes rust-lang#42708. r? @nrc
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Nov 30, 2017
Fix hygiene bug. Fixes rust-lang#42708. r? @nrc
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Nov 30, 2017
Fix hygiene bug. Fixes rust-lang#42708. r? @nrc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Declarative macro with '#[derive(Serialize)]' inside generates compilation error. The same old-style macro works ok.
I tried this code:
'old_macro' and 'new_marcro' are equal so I expect that both should be compiled. Instead compiler failed on 'new_macro' (but compiled 'old_macro' successfully):
Meta
The text was updated successfully, but these errors were encountered: