Implement ptr::try_cast_aligned and NonNull::try_cast_aligned. by mathisbot · Pull Request #141222 · rust-lang/rust (original) (raw)

Changes lgtm but would you mind cleaning up the commit message? It's a bit nonsensical (assuming this came from an autosquash)

Implement `ptr::try_cast_aligned`

`ptr::try_cast_aligned`: link tracking issue

`ptr::try_cast_aligned`: remove forgotten `const`

`NonNull::try_cast_aligned`: fix doctest

`ptr::try_cast_aligned`: #[inline]

ptr::`try_cast_aligned`: fix doc

Implement `ptr::try_cast_aligned` and `NonNull::try_cast_aligned`.

You should just be able to run git commit --amend and delete everything but the first (or last) line, then git push --force-with-lease.