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
* Fix safety comment citations to use pinned Rust versions
Updates safety comments in `src/impls.rs`, `src/util/mod.rs`,
`src/lib.rs`, `src/pointer/ptr.rs`, and `zerocopy-derive/src/enum.rs`
to cite specific stable Rust versions (mainly 1.81.0) instead of
generic `stable` or `nightly` URLs.
Adds quotes from the documentation to support the safety claims,
as per the issue requirements.
Resolves FIXMEs related to missing citations for `NonZero` layout,
`Option<NonZero>` compatibility, and `null` pointer representation.
Closes#1655
* Fix safety comment citations to use pinned Rust versions
Updates safety comments in `src/impls.rs`, `src/util/mod.rs`,
`src/lib.rs`, `src/pointer/ptr.rs`, and `zerocopy-derive/src/enum.rs`
to cite specific stable Rust versions (mainly 1.81.0) instead of
generic `stable` or `nightly` URLs.
Adds quotes from the documentation to support the safety claims,
as per the issue requirements.
Resolves FIXMEs related to missing citations for `NonZero` layout,
`Option<NonZero>` compatibility, and `null` pointer representation.
Clarifies safety comment in `src/pointer/ptr.rs` regarding validity
preservation when iterating over slices.
Closes#1655
* Update NonZero URLs to type alias format
Corrects the URLs for `NonZeroU8` and `NonZeroI8` documentation
to point to `type.NonZero*.html` instead of `struct.NonZero*.html`,
as they are type aliases in Rust 1.81.0.
Ensures quoted text regarding layout and Option compatibility is accurate.
* Add NPO size guarantee quote for NonZero
Adds the documentation quote "Thanks to the null pointer optimization,
NonZero... and Option<NonZero...> are guaranteed to have the same size
and alignment" to the safety comments for `Option<NonZeroU8>` and
`Option<NonZeroI8>`.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments