]>
Commit | Line | Data |
---|---|---|
136023e0 | 1 | error[E0080]: evaluation of constant value failed |
94222f64 | 2 | --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL |
136023e0 | 3 | | |
ed00b5ec | 4 | = note: memory access failed: ALLOC0 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds |
487cf647 FG |
5 | | |
6 | note: inside `std::ptr::read::<u32>` | |
7 | --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL | |
487cf647 | 8 | note: inside `_READ` |
49aad941 | 9 | --> $DIR/out_of_bounds_read.rs:10:33 |
136023e0 XL |
10 | | |
11 | LL | const _READ: u32 = unsafe { ptr::read(PAST_END_PTR) }; | |
487cf647 | 12 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
136023e0 XL |
13 | |
14 | error[E0080]: evaluation of constant value failed | |
94222f64 | 15 | --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL |
136023e0 | 16 | | |
ed00b5ec | 17 | = note: memory access failed: ALLOC0 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds |
94222f64 | 18 | | |
487cf647 FG |
19 | note: inside `std::ptr::read::<u32>` |
20 | --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL | |
4b012472 | 21 | note: inside `std::ptr::const_ptr::<impl *const u32>::read` |
487cf647 | 22 | --> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL |
487cf647 | 23 | note: inside `_CONST_READ` |
49aad941 | 24 | --> $DIR/out_of_bounds_read.rs:11:39 |
136023e0 XL |
25 | | |
26 | LL | const _CONST_READ: u32 = unsafe { PAST_END_PTR.read() }; | |
487cf647 | 27 | | ^^^^^^^^^^^^^^^^^^^ |
136023e0 XL |
28 | |
29 | error[E0080]: evaluation of constant value failed | |
94222f64 | 30 | --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL |
136023e0 | 31 | | |
ed00b5ec | 32 | = note: memory access failed: ALLOC0 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds |
487cf647 FG |
33 | | |
34 | note: inside `std::ptr::read::<u32>` | |
35 | --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL | |
4b012472 | 36 | note: inside `std::ptr::mut_ptr::<impl *mut u32>::read` |
487cf647 | 37 | --> $SRC_DIR/core/src/ptr/mut_ptr.rs:LL:COL |
487cf647 | 38 | note: inside `_MUT_READ` |
49aad941 | 39 | --> $DIR/out_of_bounds_read.rs:12:37 |
136023e0 XL |
40 | | |
41 | LL | const _MUT_READ: u32 = unsafe { (PAST_END_PTR as *mut u32).read() }; | |
487cf647 | 42 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
136023e0 XL |
43 | |
44 | error: aborting due to 3 previous errors | |
45 | ||
46 | For more information about this error, try `rustc --explain E0080`. |