Confusing display of 1.0.0 stability #90552
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
At https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html (same issue on stable), the "1.0.0" stability on the right-hand side is displayed inconsistently. It seems to show up only when there is also
const
stability to display. Example:new
shows stability of1.0.0 (const: 1.39.0)
.with_capacity
shows no stability information. But both have#[stable(feature = "rust1", since = "1.0.0")]
:https://doc.rust-lang.org/nightly/src/alloc/vec/mod.rs.html#424
https://doc.rust-lang.org/nightly/src/alloc/vec/mod.rs.html#469
Note: Hiding 1.0.0 stability for the stdlib may actually be the right thing to do, to reduce noise. But if that's the intent, we should do it consistently - for instance also hiding 1.0.0 in the
<h1>
at the top of the page.The text was updated successfully, but these errors were encountered: