-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
macros: expand #[derive]
s after other attribute macros and improve intra-#[derive]
ordering
#37067
Conversation
#[derive]
s after other macro invocations and improve intra-#[derive]
ordering#[derive]
s after other attribute macros and improve intra-#[derive]
ordering
db51187
to
8aa6b5c
Compare
@bors: r+ Thanks @jseyfried! |
📌 Commit 8aa6b5c has been approved by |
if mitem.value_str().is_some() { | ||
cx.span_err(mitem.span, "unexpected value in `derive`"); | ||
let mut derive_attrs = Vec::new(); | ||
item = item.map_attrs(|attrs| attrs.into_iter().filter_map(|attr| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this use Iterator#partition
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, amended.
8aa6b5c
to
448d6ad
Compare
@bors r=alexcrichton |
📌 Commit 448d6ad has been approved by |
cc @nrc |
…excrichton macros: expand `#[derive]`s after other attribute macros and improve intra-`#[derive]` ordering Fixes serde-rs/serde#577. cc rust-lang#35900 r? @alexcrichton
…excrichton macros: expand `#[derive]`s after other attribute macros and improve intra-`#[derive]` ordering Fixes serde-rs/serde#577. cc rust-lang#35900 r? @alexcrichton
Fixes serde-rs/serde#577.
cc #35900
r? @alexcrichton