-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Deprecated proc_macro doesn't trigger warning on build library #65484
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
src/libsyntax/ext/build.rs
Outdated
nested_words: Vec<ast::NestedMetaItem>) | ||
-> ast::MetaItem { | ||
attr::mk_list_item(Ident::new(w, sp), nested_words) | ||
} |
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.
The libsyntax/ext/build.rs
is kind of deprecated, so it's better to avoid extending it, but rather use attr::mk_nested_word_item
and attr::mk_list_item
directly in the proc macro harness.
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.
Got it. I'd love to change it.
This needs a test. |
☔ The latest upstream changes (presumably #65495) made this pull request unmergeable. Please resolve the merge conflicts. |
Ping from Triage: Hi @XiangQingW, any updates? |
Yes, I'm working on this. I mess up with conflict and create a new pr ##65666. |
686e657
to
b7a9c28
Compare
Fix #65189