Skip to content

Stability attributes on moved items can be confusing #49651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ExpHP opened this issue Apr 4, 2018 · 1 comment
Open

Stability attributes on moved items can be confusing #49651

ExpHP opened this issue Apr 4, 2018 · 1 comment
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.

Comments

@ExpHP
Copy link
Contributor

ExpHP commented Apr 4, 2018

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?

@pietroalbini pietroalbini added C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. I-needs-decision Issue: In need of a decision. labels Apr 5, 2018
@jonas-schievink jonas-schievink added the A-stability Area: `#[stable]`, `#[unstable]` etc. label Apr 20, 2020
@fmease fmease added S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. C-bug Category: This is a bug. and removed I-needs-decision Issue: In need of a decision. C-enhancement Category: An issue proposing an enhancement or a PR with one. labels Dec 21, 2024
@fmease fmease changed the title stability attributes on moved items can be confusing (std::ops::Bound) Stability attributes on moved items can be confusing Dec 21, 2024
@RodBurman
Copy link

RodBurman commented Mar 27, 2025

Bound seems to have disappeared from the collections::* doc after 1.22.0 and not appeared in std::* doc until 1.26.0, I am not sure why there is a gap. Also it appears that the c_void problem has been corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

5 participants