Feature request: show rustc_const_unstable in generated documentation #81371
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Describe the problem you are trying to solve
I looked at the documentation for
core::mem::variant_count
. It does mention that the function is nightly-only:It misleadingly doesn't mention that
const fn
can also be enabled on nightly, which requires opening the[src]
link and noticing:Describe the solution you'd like
When the
rustc_const_unstable
attribute is applied to a function, show that, much like nightly-only functions are shown in the documentation.The text was updated successfully, but these errors were encountered: