]> git.lizzy.rs Git - rust.git/blob - src/test/ui/intrinsics/intrinsic-raw_eq-const-padding.stderr
Stop generating `alloca`s+`memcmp` for simple array equality
[rust.git] / src / test / ui / intrinsics / intrinsic-raw_eq-const-padding.stderr
1 error: any use of this value will cause an error
2   --> $DIR/intrinsic-raw_eq-const-padding.rs:6:5
3    |
4 LL | / const BAD_RAW_EQ_CALL: bool = unsafe {
5 LL | |     std::intrinsics::raw_eq(&(1_u8, 2_u16), &(1_u8, 2_u16))
6    | |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reading 4 bytes of memory starting at alloc2, but 1 byte is uninitialized starting at alloc2+0x1, and this operation requires initialized memory
7 LL | |
8 LL | |
9 LL | | };
10    | |__-
11    |
12 note: the lint level is defined here
13   --> $DIR/intrinsic-raw_eq-const-padding.rs:3:9
14    |
15 LL | #![deny(const_err)]
16    |         ^^^^^^^^^
17    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
19
20 error: aborting due to previous error
21