mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-19 11:43:39 -04:00
avoid non-strict-provenance casts in libcore tests
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user