@@ -23,7 +23,7 @@ error: any use of this value will cause an error
23
23
LL | unsafe { intrinsics::offset(self, count) }
24
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
25
| |
26
- | inbounds test failed: pointer must be in-bounds at offset 2, but is outside bounds of allocN which has size 1
26
+ | pointer arithmetic failed: pointer must be in-bounds at offset 2, but is outside bounds of allocN which has size 1
27
27
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
28
28
| inside `AFTER_END` at $DIR/offset_ub.rs:7:43
29
29
|
@@ -41,7 +41,7 @@ error: any use of this value will cause an error
41
41
LL | unsafe { intrinsics::offset(self, count) }
42
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
43
| |
44
- | inbounds test failed: pointer must be in-bounds at offset 101, but is outside bounds of allocN which has size 100
44
+ | pointer arithmetic failed: pointer must be in-bounds at offset 101, but is outside bounds of allocN which has size 100
45
45
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
46
46
| inside `AFTER_ARRAY` at $DIR/offset_ub.rs:8:45
47
47
|
@@ -131,7 +131,7 @@ error: any use of this value will cause an error
131
131
LL | unsafe { intrinsics::offset(self, count) }
132
132
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133
133
| |
134
- | inbounds test failed: pointer must be in-bounds at offset 1, but is outside bounds of allocN which has size 0
134
+ | pointer arithmetic failed: pointer must be in-bounds at offset 1, but is outside bounds of allocN which has size 0
135
135
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
136
136
| inside `ZERO_SIZED_ALLOC` at $DIR/offset_ub.rs:15:50
137
137
|
@@ -167,7 +167,7 @@ error: any use of this value will cause an error
167
167
LL | unsafe { intrinsics::offset(self, count) }
168
168
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
169
169
| |
170
- | inbounds test failed: 0x0 is not a valid pointer
170
+ | pointer arithmetic failed: 0x0 is not a valid pointer
171
171
| inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
172
172
| inside `NULL_OFFSET_ZERO` at $DIR/offset_ub.rs:19:50
173
173
|
0 commit comments