Stability attributes on moved items can be confusing #49651
Labels
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-bug
Category: This is a bug.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
https://doc.rust-lang.org/beta/std/ops/enum.Bound.html
says it has been around since 1.17.0, but
https://doc.rust-lang.org/std/ops/enum.Bound.html
does not exist. (and I can't use it on stable in the playground)
Digging more into it, it looks the type itself was indeed stabilized in 1.17.0, but in a different location (
collections
). I think this sort of thing can be confusing, and it raises the question; what version should it say here?Is there precedent here? And if so (and if the current choice to use 1.17.0 is indeed following that precedent), should there perhaps be some prominent notice in the docs indicating the version at which Bound was moved to this location?
The text was updated successfully, but these errors were encountered: