@@ -23,7 +23,7 @@ error: any use of this value will cause an error
2323LL |         unsafe { intrinsics::offset(self, count) }
2424   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2525   |                  |
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
2727   |                  inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
2828   |                  inside `AFTER_END` at $DIR/offset_ub.rs:7:43
2929   | 
@@ -41,7 +41,7 @@ error: any use of this value will cause an error
4141LL |         unsafe { intrinsics::offset(self, count) }
4242   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4343   |                  |
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
4545   |                  inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
4646   |                  inside `AFTER_ARRAY` at $DIR/offset_ub.rs:8:45
4747   | 
@@ -131,7 +131,7 @@ error: any use of this value will cause an error
131131LL |         unsafe { intrinsics::offset(self, count) }
132132   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133133   |                  |
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
135135   |                  inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
136136   |                  inside `ZERO_SIZED_ALLOC` at $DIR/offset_ub.rs:15:50
137137   | 
@@ -167,7 +167,7 @@ error: any use of this value will cause an error
167167LL |         unsafe { intrinsics::offset(self, count) }
168168   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
169169   |                  |
170-    |                  inbounds test  failed: 0x0 is not a valid pointer
170+    |                  pointer arithmetic  failed: 0x0 is not a valid pointer
171171   |                  inside `ptr::const_ptr::<impl *const u8>::offset` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
172172   |                  inside `NULL_OFFSET_ZERO` at $DIR/offset_ub.rs:19:50
173173   | 
0 commit comments