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
When creating a macro tagged with #[macro_export] inside of a proc_macro_derive the documentation incorrectly displays the name of the derive instead of the match pattern.
I tried this code: (everything is the same as here except for "main.rs" and "impl_hello_world()").
The text was updated successfully, but these errors were encountered:
lcnr
changed the title
doc does not correctly display macro match arms if they are created inside of a proc macro-
doc does not correctly display macro match arms if they are created inside of a proc macro
Aug 9, 2017
Mark-Simulacrum
added
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
labels
Aug 10, 2017
ehuss
removed
the
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
label
Jan 18, 2022
When creating a macro tagged with
#[macro_export]
inside of aproc_macro_derive
the documentation incorrectly displays the name of the derive instead of the match pattern.I tried this code: (everything is the same as here except for "main.rs" and "impl_hello_world()").
main.rs:
hello-world-derive/src/lib.rs:
When opening the automatic documentation(
cargo doc --open
) I expectedFoo!
to look like this:Instead, Foo looked like this: ( the name of the derive instead of the actual match pattern.)
In case the created macro has more than 1 match arm it looks like this:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: