You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #158343 - obi1kenobi:pg/item-const-stability, r=GuillaumeGomez
Include `Item::const_stability` info in rustdoc JSON.
Include a parallel `Item::const_stability` item in rustdoc JSON, sibling to `Item::stability` from #158230, intended for the same purpose of catching accidental breaking changes in the Rust standard library.
I aimed to include `Item::const_stability` judiciously, when it would be genuinely useful without needlessly bloating the JSON. For example, if an item is already unstable, we do not duplicate the `Item::stability` value into `Item::const_stability` as the const-instability is clearly implied. I've covered all such cases in the test suite and documented my reasoning inline.
r? @GuillaumeGomez
**AI disclosure:** This PR is the product of a combination of manual work and AI tools. I secured approval in advance from the designated reviewer. I stand behind the quality of the code I'm submitting, and I vouch it's as good or better compared to if I had written every line by my own hand.
(In particular, local AI review flagged several missing test cases, one of which caught a bug I would have missed otherwise.)
0 commit comments