move 'uninit' tests into common directory
This commit is contained in:
parent
7a661d048c
commit
64fb96f17e
@ -1,3 +1,4 @@
|
||||
//@compile-flags: -Zmiri-disable-validation
|
||||
//@error-in-other-file: memory is uninitialized at [0x4..0x10]
|
||||
|
||||
#![allow(dropping_copy_types)]
|
@ -10,7 +10,7 @@ LL | let mut order = unsafe { compare_bytes(left.as_ptr(), right.as_ptr(
|
||||
= note: inside `<u8 as core::slice::cmp::SliceOrd>::compare` at RUSTLIB/core/src/slice/cmp.rs:LL:CC
|
||||
= note: inside `core::slice::cmp::<impl std::cmp::Ord for [u8]>::cmp` at RUSTLIB/core/src/slice/cmp.rs:LL:CC
|
||||
note: inside `main`
|
||||
--> $DIR/uninit_buffer.rs:LL:CC
|
||||
--> $DIR/uninit_alloc_diagnostic.rs:LL:CC
|
||||
|
|
||||
LL | drop(slice1.cmp(slice2));
|
||||
| ^^^^^^^^^^^^^^^^^^
|
@ -1,3 +1,4 @@
|
||||
//@compile-flags: -Zmiri-disable-validation
|
||||
//@error-in-other-file: memory is uninitialized at [0x4..0x8]
|
||||
//@normalize-stderr-test: "a[0-9]+" -> "ALLOC"
|
||||
#![feature(strict_provenance)]
|
@ -10,7 +10,7 @@ LL | let mut order = unsafe { compare_bytes(left.as_ptr(), right.as_ptr(
|
||||
= note: inside `<u8 as core::slice::cmp::SliceOrd>::compare` at RUSTLIB/core/src/slice/cmp.rs:LL:CC
|
||||
= note: inside `core::slice::cmp::<impl std::cmp::Ord for [u8]>::cmp` at RUSTLIB/core/src/slice/cmp.rs:LL:CC
|
||||
note: inside `main`
|
||||
--> $DIR/uninit_buffer_with_provenance.rs:LL:CC
|
||||
--> $DIR/uninit_alloc_diagnostic_with_provenance.rs:LL:CC
|
||||
|
|
||||
LL | drop(slice1.cmp(slice2));
|
||||
| ^^^^^^^^^^^^^^^^^^
|
Loading…
x
Reference in New Issue
Block a user