Skip to content

Commit

Permalink
avoid non-strict-provenance casts in libcore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Nov 20, 2022
1 parent 2ed65da commit 2bb28c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/tests/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ fn align_offset_issue_103361() {
#[cfg(target_pointer_width = "16")]
const SIZE: usize = 1 << 13;
struct HugeSize([u8; SIZE - 1]);
let _ = (SIZE as *const HugeSize).align_offset(SIZE);
let _ = ptr::invalid::<HugeSize>(SIZE).align_offset(SIZE);
}

#[test]
Expand Down

0 comments on commit 2bb28c1

Please sign in to comment.