Skip to content

[Change]: [1.99.0] Stabilize '#[my_macro] mod foo;' - #729

Open
PLeVasseur wants to merge 1 commit into
rust-lang:mainfrom
PLeVasseur:outline-modules-in-proc-macros
Open

PLeVasseur wants to merge 1 commit into
rust-lang:mainfrom
PLeVasseur:outline-modules-in-proc-macros

Conversation

@PLeVasseur

Copy link
Copy Markdown
Contributor

Summary

Document how attribute and derive macros receive outline module declarations without loading the module files.

Refs #726

Reference alignment

Rust #157857 and Reference #2310. Derive coverage also follows the stabilization tests.

Rust 1.99 stabilizes outline modules (`mod foo;`) in the input of
attribute and derive procedural macros (rust-lang/rust#157857). The
macro receives the module declaration as tokens; the module's source
file is not loaded and its contents are not part of the input.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants