Alignment: move from ptr to mem and rename as_nonzero to as_nonzero_usize#154004
Alignment: move from ptr to mem and rename as_nonzero to as_nonzero_usize#154004GrigorenkoPV wants to merge 2 commits intorust-lang:mainfrom
Alignment: move from ptr to mem and rename as_nonzero to as_nonzero_usize#154004Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Should the identifier not be |
|
That's an interesting observation, and after looking into precedent… it could be either way. Searching for "non" in the standard library docs: https://doc.rust-lang.org/nightly/std/?search=non Excluding false positives, we have the following which are stable:
And the following unstable:
So, really, the answer is that there's not really been a consistent choice, except that In general… we do tend to prefer |
ptr::Alignmenttype #102070ptr_alignment_typeasalignment_type#153261