mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
be1b304ea4
Fix potential UB in align_offset doc examples Currently it takes a pointer only to the first element in the array, this changes the code to take a pointer to the whole array. miri can't catch this right now because it later calls `x.len()` which re-tags the pointer for the whole array. https://github.com/rust-lang/miri/issues/1526#issuecomment-680897144