11error[E0080]: evaluation of constant value failed
2- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
3- |
4- LL | unsafe { copy_nonoverlapping(src, dst, count) }
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6- | |
7- | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
8- | inside `copy_nonoverlapping::<u32>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL
9- |
10- ::: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
2+ --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
113 |
124LL | copy_nonoverlapping(src, tmp.as_mut_ptr(), 1);
13- | --------------------------------------------- inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+ | |
7+ | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
8+ | inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
149 |
1510 ::: $DIR/out_of_bounds_read.rs:13:33
1611 |
1712LL | const _READ: u32 = unsafe { ptr::read(PAST_END_PTR) };
1813 | ----------------------- inside `_READ` at $DIR/out_of_bounds_read.rs:13:33
1914
2015error[E0080]: evaluation of constant value failed
21- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
22- |
23- LL | unsafe { copy_nonoverlapping(src, dst, count) }
24- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25- | |
26- | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
27- | inside `copy_nonoverlapping::<u32>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL
28- |
29- ::: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
16+ --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
3017 |
3118LL | copy_nonoverlapping(src, tmp.as_mut_ptr(), 1);
32- | --------------------------------------------- inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
19+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20+ | |
21+ | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
22+ | inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
3323 |
3424 ::: $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
3525 |
@@ -42,18 +32,13 @@ LL | const _CONST_READ: u32 = unsafe { PAST_END_PTR.read() };
4232 | ------------------- inside `_CONST_READ` at $DIR/out_of_bounds_read.rs:14:39
4333
4434error[E0080]: evaluation of constant value failed
45- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
46- |
47- LL | unsafe { copy_nonoverlapping(src, dst, count) }
48- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49- | |
50- | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
51- | inside `copy_nonoverlapping::<u32>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL
52- |
53- ::: $SRC_DIR/core/src/ptr/mod.rs:LL:COL
35+ --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
5436 |
5537LL | copy_nonoverlapping(src, tmp.as_mut_ptr(), 1);
56- | --------------------------------------------- inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
38+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39+ | |
40+ | memory access failed: alloc7 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds
41+ | inside `std::ptr::read::<u32>` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
5742 |
5843 ::: $SRC_DIR/core/src/ptr/mut_ptr.rs:LL:COL
5944 |
0 commit comments