rustdoc: decouple stability and const-stability by euclio · Pull Request #91694 · rust-lang/rust (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GuillaumeGomez This is one of the goals of this PR. Currently, stabilities are omitted if the stability of the item matches the stability of the enclosing struct or module, except if they also have a const stability.

This PR updates the logic to always omit the stability if it matches, regardless of whether the item is const-stable or not.