mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
58d23737a6
Use pointer `is_aligned*` methods
This PR replaces some manual alignment checks with calls to `pointer::{is_aligned, is_aligned_to}` and removes a useless pointer cast.
r? `@scottmcm`
_split off from #100746_