@@ -4,7 +4,7 @@ error[E0080]: could not evaluate static initializer
44LL | &*ptr::slice_from_raw_parts(data, len)
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 | |
7- | dereferencing pointer failed: null pointer is not a valid pointer
7+ | dereferencing pointer failed: null pointer is a dangling pointer (it has no provenance)
88 | inside `std::slice::from_raw_parts::<u32>` at $SRC_DIR/core/src/slice/raw.rs:LL:COL
99 |
1010 ::: $DIR/forbidden_slices.rs:19:34
@@ -18,7 +18,7 @@ error[E0080]: could not evaluate static initializer
1818LL | &*ptr::slice_from_raw_parts(data, len)
1919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020 | |
21- | dereferencing pointer failed: null pointer is not a valid pointer
21+ | dereferencing pointer failed: null pointer is a dangling pointer (it has no provenance)
2222 | inside `std::slice::from_raw_parts::<()>` at $SRC_DIR/core/src/slice/raw.rs:LL:COL
2323 |
2424 ::: $DIR/forbidden_slices.rs:20:33
@@ -104,7 +104,7 @@ error[E0080]: could not evaluate static initializer
104104LL | unsafe { intrinsics::ptr_offset_from_unsigned(self, origin) }
105105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106106 | |
107- | out-of-bounds offset_from: null pointer is not a valid pointer
107+ | out-of-bounds offset_from: null pointer is a dangling pointer (it has no provenance)
108108 | inside `ptr::const_ptr::<impl *const u32>::sub_ptr` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
109109 |
110110 ::: $SRC_DIR/core/src/slice/raw.rs:LL:COL
@@ -144,7 +144,7 @@ error[E0080]: could not evaluate static initializer
144144LL | unsafe { intrinsics::offset(self, count) }
145145 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146146 | |
147- | pointer arithmetic failed : ALLOC_ID has size 4, so pointer to 8 bytes starting at offset 0 is out-of-bounds
147+ | out-of-bounds pointer arithmetic: ALLOC_ID has size 4, so pointer to 8 bytes starting at offset 0 is out-of-bounds
148148 | inside `ptr::const_ptr::<impl *const u32>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
149149...
150150LL | unsafe { self.offset(count as isize) }
@@ -205,7 +205,7 @@ error[E0080]: could not evaluate static initializer
205205LL | unsafe { intrinsics::offset(self, count) }
206206 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207207 | |
208- | pointer arithmetic failed : ALLOC_ID has size 8, so pointer to 8 bytes starting at offset 1 is out-of-bounds
208+ | out-of-bounds pointer arithmetic: ALLOC_ID has size 8, so pointer to 8 bytes starting at offset 1 is out-of-bounds
209209 | inside `ptr::const_ptr::<impl *const u64>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
210210...
211211LL | unsafe { self.offset(count as isize) }
0 commit comments