-
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
Stabilize attribute macros on inline modules #64273
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
Stabilization reportMacro attributes are now supported on inline module items ( The feature is a part of the franken-feature |
8a0f68f
to
6377801
Compare
This comment has been minimized.
This comment has been minimized.
6377801
to
10df935
Compare
r? @Centril |
This comment has been minimized.
This comment has been minimized.
(triage: I'll look at this PR during the weekend.) |
This comment has been minimized.
This comment has been minimized.
Stabilize macros in some more positions - Fn-like macros and attribute macros in `extern` blocks - Fn-like procedural macros in type positions - ~Attribute macros on inline modules~ (moved to rust-lang#64273) Stabilization report: rust-lang#63931 (comment). Closes rust-lang#49476 cc rust-lang#54727
Stabilize macros in some more positions - Fn-like macros and attribute macros in `extern` blocks - Fn-like procedural macros in type positions - ~Attribute macros on inline modules~ (moved to rust-lang#64273) Stabilization report: rust-lang#63931 (comment). Closes rust-lang#49476 cc rust-lang#54727
Declaring reviewer bankruptcy on this PR (sorry!) and reassigning to r? @pnkfelix who is considering the macro related changes together. (I'm a bit bummed by the visitor approach that is unfortunately necessary to land this. From a compiler POV it's trivial but from a spec POV it's not.) |
FWIW, that's the same approach that is used for gating macro-expanded |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sigh, okay. (At least I tried.) |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. The RFC will be merged soon. |
This comment has been minimized.
This comment has been minimized.
a58e024
to
e3155ab
Compare
r? @Centril |
@bors r+ rollup |
📌 Commit e3155ab has been approved by |
Stabilize attribute macros on inline modules While still gating non-inline modules in proc macro input. Split from rust-lang#63931 cc rust-lang#54727
Stabilize attribute macros on inline modules While still gating non-inline modules in proc macro input. Split from rust-lang#63931 cc rust-lang#54727
Rollup of 10 pull requests Successful merges: - #64273 (Stabilize attribute macros on inline modules) - #67287 (typeck: note other end-point when checking range pats) - #67564 (docs: Iterator adapters have unspecified results after a panic) - #67622 (Some keyword documentation.) - #67657 (Clean up const-hack PRs now that const if / match exist.) - #67677 (resolve: Minor cleanup of duplicate macro reexports) - #67687 (Do not ICE on lifetime error involving closures) - #67698 (Move reachable_set and diagnostic_items to librustc_passes.) - #67701 (tidy: Enforce formatting rather than just check it if `--bless` is specified) - #67715 (Typo fix) Failed merges: r? @ghost
While still gating non-inline modules in proc macro input.
Split from #63931
cc #54727