mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 08:34:07 +00:00
avoid non-strict-provenance casts in libcore tests
This commit is contained in:
parent
2ed65da152
commit
2bb28c174b
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user