Skip to content
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

rustdoc: "stable since" version is incorrect for std::ffi::CStr #135078

Closed
dzil123 opened this issue Jan 3, 2025 · 1 comment · Fixed by #135352
Closed

rustdoc: "stable since" version is incorrect for std::ffi::CStr #135078

dzil123 opened this issue Jan 3, 2025 · 1 comment · Fixed by #135352
Labels
A-stability Area: `#[stable]`, `#[unstable]` etc. C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@dzil123
Copy link

dzil123 commented Jan 3, 2025

Image
The documentation page for std::ffi::CStr says it was stabilized in 1.64.0, but it should say 1.0.0.

Applies to latest stable and nightly
https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html
https://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html

This was correct back in 1.61.0
https://doc.rust-lang.org/1.61.0/std/ffi/struct.CStr.html

@dzil123 dzil123 added the C-bug Category: This is a bug. label Jan 3, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 3, 2025
@steffahn
Copy link
Member

steffahn commented Jan 3, 2025

The problem is that core::ffi::CStr was stabilized in 1.64, and the path in std has become a re-export.

@jieyouxu jieyouxu added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-stability Area: `#[stable]`, `#[unstable]` etc. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jan 6, 2025
@bors bors closed this as completed in a2016aa Jan 13, 2025
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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants