Skip to content

Stability attributes on moved items can be confusing #49651

@ExpHP

Description

@ExpHP

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-stabilityArea: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions