Skip to content

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

Open
PLeVasseur wants to merge 1 commit into
outline-modules-review-base-1-99from
outline-modules-in-proc-macros
Open

PLeVasseur wants to merge 1 commit into
outline-modules-review-base-1-99from
outline-modules-in-proc-macros

Conversation

@PLeVasseur

@PLeVasseur PLeVasseur commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

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

Refs rust-lang#726

Reference alignment

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

Testing

Examples and results.

@PLeVasseur
PLeVasseur marked this pull request as ready for review September 23, 2026 17:42
@PLeVasseur
PLeVasseur force-pushed the outline-modules-in-proc-macros branch 2 times, most recently from 47021e7 to 920d791 Compare September 23, 2026 21:54
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.
@PLeVasseur
PLeVasseur force-pushed the outline-modules-in-proc-macros branch from 2bc81d8 to 313ce37 Compare September 23, 2026 23:47
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.

1 participant