-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Reordering of attributes passed to rustc_macro_derive
#36211
Comments
Hm I'm not actually sure how to fix this offhand. When the Might require a more intrusive change to |
Why? Putting the remaining derives back where the one we just took out seems like the right thing to do to me. |
Oh right yeah we should put the |
This only affected syntex and is no longer required as we move our rustc_macro away from syntex (serde-rs/serde#548). |
Without syntex this no longer matters. |
(Using rustc from #35957)
Macros 1.1 is reordering attributes in a way that breaks Syntex. If I have the following:
It gets passed to my
#[rustc_macro_derive(Serialize)]
as:I would expect the
#[derive(Deserialize)]
to stay above#[serde(...)]
.cc @alexcrichton
The text was updated successfully, but these errors were encountered: