You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(rustdoc) usize and isize associated items only available on 64-bit. #150536
doc_cfg labels all associated items of usize and isize with Available on 64-bit only., even when the item in question is portable and has a constant signature across targets (e.g. all methods).
Currently applies to nightly and beta.
What I would call optimal: Only associated constants that are formally-platform-dependent (e.g. MIN and MAX) should be labelled.
Possible fix: Move portable item implementations out of the cfg'ed impl blocks. This would maybe require splitting the int_impl and uint_impl macros, e.g. int_impl_conditional and int_impl_portable.
Activity
theemathas commentedon Dec 31, 2025
Thanks for reporting. This is a duplicate of #149786.
usizedocs show everything as “Available on 64-bit only” #149786bjoernager commentedon Dec 31, 2025
Thanks for letting me know. I must've missed it when I looked for an existing issue. :/