@@ -4,7 +4,7 @@ error[E0080]: could not evaluate static initializer
4
4
LL | &*ptr::slice_from_raw_parts(data, len)
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
| |
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)
8
8
| inside `std::slice::from_raw_parts::<u32>` at $SRC_DIR/core/src/slice/raw.rs:LL:COL
9
9
|
10
10
::: $DIR/forbidden_slices.rs:19:34
@@ -18,7 +18,7 @@ error[E0080]: could not evaluate static initializer
18
18
LL | &*ptr::slice_from_raw_parts(data, len)
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
20
| |
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)
22
22
| inside `std::slice::from_raw_parts::<()>` at $SRC_DIR/core/src/slice/raw.rs:LL:COL
23
23
|
24
24
::: $DIR/forbidden_slices.rs:20:33
@@ -104,7 +104,7 @@ error[E0080]: could not evaluate static initializer
104
104
LL | unsafe { intrinsics::ptr_offset_from_unsigned(self, origin) }
105
105
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106
106
| |
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)
108
108
| inside `ptr::const_ptr::<impl *const u32>::sub_ptr` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
109
109
|
110
110
::: $SRC_DIR/core/src/slice/raw.rs:LL:COL
@@ -144,7 +144,7 @@ error[E0080]: could not evaluate static initializer
144
144
LL | unsafe { intrinsics::offset(self, count) }
145
145
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146
146
| |
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
148
148
| inside `ptr::const_ptr::<impl *const u32>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
149
149
...
150
150
LL | unsafe { self.offset(count as isize) }
@@ -205,7 +205,7 @@ error[E0080]: could not evaluate static initializer
205
205
LL | unsafe { intrinsics::offset(self, count) }
206
206
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
207
| |
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
209
209
| inside `ptr::const_ptr::<impl *const u64>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
210
210
...
211
211
LL | unsafe { self.offset(count as isize) }
0 commit comments