Skip to content

Nightly usize docs show everything as “Available on 64-bit only” #149786

Closed

Description

@narpfel

View all comments

Location (URL)

https://doc.rust-lang.org/nightly/std/primitive.usize.html#impl-usize

Summary

Everything in the first impl usize section on the (nightly) usize docs page is listed as “Available on 64-bit only”. This does not happen on the beta and stable versions of that page, so it seems like a recent change.

I noticed this while reading the docs for checked_signed_diff. I didn’t know that method before, so the incorrect note confused me.

I tried to search for https://github.com/rust-lang/rust/issues?q=Available%20on%2064-bit%20only%20usize, but I don’t trust the GitHub issue search enough to be confident that this is not a duplicate, so sorry in advance!

Activity

  1. added
    A-docs
    on Dec 8, 2025
  2. added
    needs-triage
    on Dec 8, 2025
  3. added
    T-rustdoc
    regression-from-stable-to-nightly
    on Dec 8, 2025
  4. added
    I-prioritize
    on Dec 8, 2025
  5. removed
    needs-triage
    on Dec 9, 2025
  6. added
    E-needs-bisection
    on Dec 10, 2025
  7. fmease commented on Dec 14, 2025

    @fmease
    Member

    Need to check if this due to a stdlib change or a rustdoc change.

  8. added
    F-doc_cfg
    C-bug
    on Dec 14, 2025
  9. removed
    E-needs-bisection
    on Dec 14, 2025
  10. madsmtm commented on Dec 14, 2025

    @madsmtm
    Member

    Interestingly, the docs in core don't have this bug.

    Regressed between 2025-11-09 and 2025-11-10, manually bisected to #148660.

  11. added
    S-has-bisection
    on Dec 14, 2025
  12. bjoernager commented on Dec 31, 2025

    @bjoernager
    Contributor

    Appropriate tracking issue: #43781

    Note that this issue also applies to isize. It also applies to the beta channel now, seemingly.

    Potential fix for both types: Move portable item implementations out of the cfg'ed impl blocks. This would require splitting the int_impl and uint_impl macros into a conditional and a portable variant, e.g. int_impl_conditional for some constants and int_impl_portable for methods etc. (This fix should preserve the labels for the target-specific constant values, which are actually quite appropriate.)

  13. 30 remaining items

  14. removed
    I-prioritize
    on May 27, 2026
  15. added 5 commits that reference this issue on Jul 24, 2026
  16. added 2 commits that reference this issue on Jul 25, 2026
  17. added 2 commits that reference this issue on Jul 25, 2026
  18. added 2 commits that reference this issue on Jul 26, 2026
  19. added a commit that references this issue on Jul 26, 2026
  20. added a commit that references this issue on Aug 7, 2026
    8594c72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-docsC-bugF-doc_cfgS-has-bisectionT-rustdocregression-from-stable-to-stable

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions