Skip to content

Clarify that not all primitives implement Clone/Copy/Sized/Send/Sync - #2411

Open
Usman-Azfar wants to merge 2 commits into
rust-lang:masterfrom
Usman-Azfar:bool-traits-most-primitives
Open

Usman-Azfar wants to merge 2 commits into
rust-lang:masterfrom
Usman-Azfar:bool-traits-most-primitives

Conversation

@Usman-Azfar

@Usman-Azfar Usman-Azfar commented Nov 13, 2026 •

Copy link
Copy Markdown

Fixes #2408.

r[type.bool.traits] said "Like all primitives", but slices and str don't implement Clone, Copy, or Sized, and raw pointers don't implement Send or Sync. This changes it to "Like most primitives".

Slices and `str` do not implement `Clone`, `Copy`, or `Sized`, and raw
pointers do not implement `Send` or `Sync`, so "Like all primitives" in
`r[type.bool.traits]` is inaccurate. Say "Like most primitives" instead.

Fixes rust-lang#2408
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Nov 13, 2026
Comment thread src/types/boolean.md Resolved
Co-authored-by: Tshepang Mbambo <hopsi@tuta.io>
@Usman-Azfar

Copy link
Copy Markdown
Author

Applied, thanks for the review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reference on bool incorrectly claims that all primitives implement certain traits

3 participants