Macro parameters are not substituted in docs for const generics #82978
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
The generated documentation for const generic expressions generated by macros doesn't substitute macro parameters.
The docs for this code:
Look like this:

Note that the
$typ
macro parameter shows up literally in the const expression of the generic. This bug only happens if the macro parameter is in a const expression within the const generic; other occurrences of the macro parameter are properly substituted.Produced on
rustdoc 1.52.0-nightly (3a5d45f68 2021-03-09)
andrustdoc 1.51.0-beta.4 (4d25f4607 2021-03-05)
The text was updated successfully, but these errors were encountered: