You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remexre opened this issue
Sep 29, 2021
· 5 comments
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
When writing a macro_rules! macro that expands to another macro_rules! macro, the Rustdoc shows the source-code tokens pre-outer-macro-expansion in the rules for the inner macro. I was expecting to see something like the expansion in trace_macros!(), which does have the post-expansion rules.
@remexre can you give an example of this? I don't know what the difference would be between pre- and post-expansion.
jyn514
added
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
labels
Sep 29, 2021
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
When writing a
macro_rules!
macro that expands to anothermacro_rules!
macro, the Rustdoc shows the source-code tokens pre-outer-macro-expansion in the rules for the inner macro. I was expecting to see something like the expansion intrace_macros!()
, which does have the post-expansion rules.Meta
rustdoc --version --verbose
:The text was updated successfully, but these errors were encountered: