-
Notifications
You must be signed in to change notification settings - Fork 13.3k
resolve: Do not error on access to proc macros imported with #[macro_use]
#53461
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
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
While this seems plausible to me, I'd defer to @rust-lang/lang in this regard as it's moreso a language change they'd likely wish to discuss. Folks on @rust-lang/lang, how do you feel about |
Given that we're moving towards using |
Given that |
@petrochenkov Fair enough. Sounds reasonable to me. |
I also think it sounds reasonable :) @rfcbot fcp merge |
Team member @Centril has proposed to merge this. The next step is review by the rest of the tagged teams:
No concerns currently listed. Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
☔ The latest upstream changes (presumably #53471) made this pull request unmergeable. Please resolve the merge conflicts. |
If this is just allowing the compiler to delete code, not changing idioms, @rfcbot reviewed |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. |
Yay, FCP complete. |
📌 Commit e411bb3 has been approved by |
resolve: Do not error on access to proc macros imported with `#[macro_use]` This error is artificial, but previously, when `#[macro_use] extern crate x;` was stable, but non-derive proc macros were not, it worked like kind of a feature gate. Now both features are stable, so the error is no longer necessary. This PR simplifies how `#[macro_use] extern crate x;` works - it takes all items from macro namespace of `x`'s root and puts them into macro prelude from which they all can now be accessed.
☀️ Test successful - status-appveyor, status-travis |
This error is artificial, but previously, when
#[macro_use] extern crate x;
was stable, but non-derive proc macros were not, it worked like kind of a feature gate. Now both features are stable, so the error is no longer necessary.This PR simplifies how
#[macro_use] extern crate x;
works - it takes all items from macro namespace ofx
's root and puts them into macro prelude from which they all can now be accessed.