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:
馃敩 This is a nightly-only experimental API.
(variant_count #73662)
It misleadingly doesn't mention that const fn can also be enabled on nightly, which requires opening the [src] link and noticing:
#[rustc_const_unstable(feature = "variant_count", issue = "73662")]
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.
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 fncan also be enabled on nightly, which requires opening the[src]link and noticing:Describe the solution you'd like
When the
rustc_const_unstableattribute is applied to a function, show that, much like nightly-only functions are shown in the documentation.