rustdoc: hide constness of fns in stable docs · Issue #31098 · rust-lang/rust (original) (raw)
Rustdoc shows const fns as const
, but you can't call them in a const context because they're still unstable. If you aren't in a const context, it doesn't matter whether the fn is const or not. So it's confusing and maybe it shouldn't be shown at all until the feature is stable.
cc @jethrogb