@@ -18,7 +18,7 @@ error[E0080]: evaluation of constant value failed
18
18
LL | unsafe { intrinsics::offset(self, count) }
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
20
| |
21
- | pointer arithmetic failed : allocN has size 1, so pointer to 2 bytes starting at offset 0 is out-of-bounds
21
+ | out-of-bounds pointer arithmetic: allocN has size 1, so pointer to 2 bytes starting at offset 0 is out-of-bounds
22
22
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
23
23
|
24
24
::: $DIR/offset_ub.rs:8:43
@@ -32,7 +32,7 @@ error[E0080]: evaluation of constant value failed
32
32
LL | unsafe { intrinsics::offset(self, count) }
33
33
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
34
| |
35
- | pointer arithmetic failed : allocN has size 100, so pointer to 101 bytes starting at offset 0 is out-of-bounds
35
+ | out-of-bounds pointer arithmetic: allocN has size 100, so pointer to 101 bytes starting at offset 0 is out-of-bounds
36
36
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
37
37
|
38
38
::: $DIR/offset_ub.rs:9:45
@@ -102,7 +102,7 @@ error[E0080]: evaluation of constant value failed
102
102
LL | unsafe { intrinsics::offset(self, count) }
103
103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
104
| |
105
- | pointer arithmetic failed : allocN has size 1, so pointer to 2 bytes starting at offset -4 is out-of-bounds
105
+ | out-of-bounds pointer arithmetic: allocN has size 1, so pointer to 2 bytes starting at offset -4 is out-of-bounds
106
106
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
107
107
|
108
108
::: $DIR/offset_ub.rs:15:49
@@ -116,7 +116,7 @@ error[E0080]: evaluation of constant value failed
116
116
LL | unsafe { intrinsics::offset(self, count) }
117
117
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118
118
| |
119
- | pointer arithmetic failed : allocN has size 0, so pointer to 1 byte starting at offset 0 is out-of-bounds
119
+ | out-of-bounds pointer arithmetic: allocN has size 0, so pointer to 1 byte starting at offset 0 is out-of-bounds
120
120
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
121
121
|
122
122
::: $DIR/offset_ub.rs:17:50
@@ -130,7 +130,7 @@ error[E0080]: evaluation of constant value failed
130
130
LL | unsafe { intrinsics::offset(self, count) as *mut T }
131
131
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
132
| |
133
- | pointer arithmetic failed : 0x1 is not a valid pointer
133
+ | out-of-bounds pointer arithmetic: 0x1[noalloc] is a dangling pointer (it has no provenance)
134
134
| inside `ptr::mut_ptr::<impl *mut u8>::offset` at $SRC_DIR/core/src/ptr/mut_ptr.rs:LL:COL
135
135
|
136
136
::: $DIR/offset_ub.rs:18:42
@@ -144,7 +144,7 @@ error[E0080]: evaluation of constant value failed
144
144
LL | unsafe { intrinsics::offset(self, count) }
145
145
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146
146
| |
147
- | pointer arithmetic failed : null pointer is not a valid pointer
147
+ | out-of-bounds pointer arithmetic: null pointer is a dangling pointer (it has no provenance)
148
148
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
149
149
|
150
150
::: $DIR/offset_ub.rs:21:50
@@ -158,7 +158,7 @@ error[E0080]: evaluation of constant value failed
158
158
LL | unsafe { intrinsics::offset(self, count) }
159
159
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
160
160
| |
161
- | pointer arithmetic failed : 0x7f..f is not a valid pointer
161
+ | out-of-bounds pointer arithmetic: 0x7f..f[noalloc] is a dangling pointer (it has no provenance)
162
162
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
163
163
|
164
164
::: $DIR/offset_ub.rs:24:47
0 commit comments