@@ -5,9 +5,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 | |
77 | ptr_offset_from cannot compute offset of pointers into different allocations.
8- | inside call to `std::ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:19 :27
8+ | inside call to `std::ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:21 :27
99 |
10- ::: $DIR/offset_from_ub.rs:13 :1
10+ ::: $DIR/offset_from_ub.rs:15 :1
1111 |
1212LL | / pub const DIFFERENT_ALLOC: usize = {
1313LL | |
@@ -27,9 +27,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
2727 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2828 | |
2929 | a memory access tried to interpret some bytes as a pointer
30- | inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:25 :14
30+ | inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:27 :14
3131 |
32- ::: $DIR/offset_from_ub.rs:23 :1
32+ ::: $DIR/offset_from_ub.rs:25 :1
3333 |
3434LL | / pub const NOT_PTR: usize = {
3535LL | |
@@ -44,9 +44,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
4444 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4545 | |
4646 | exact_div: 1 cannot be divided by 2 without remainder
47- | inside call to `std::ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:33 :14
47+ | inside call to `std::ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:35 :14
4848 |
49- ::: $DIR/offset_from_ub.rs:28 :1
49+ ::: $DIR/offset_from_ub.rs:30 :1
5050 |
5151LL | / pub const NOT_MULTIPLE_OF_SIZE: isize = {
5252LL | |
@@ -64,9 +64,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
6464 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6565 | |
6666 | invalid use of NULL pointer
67- | inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:39 :14
67+ | inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:41 :14
6868 |
69- ::: $DIR/offset_from_ub.rs:36 :1
69+ ::: $DIR/offset_from_ub.rs:38 :1
7070 |
7171LL | / pub const OFFSET_FROM_NULL: isize = {
7272LL | |
@@ -82,9 +82,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
8282 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8383 | |
8484 | a memory access tried to interpret some bytes as a pointer
85- | inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:46 :14
85+ | inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:48 :14
8686 |
87- ::: $DIR/offset_from_ub.rs:42 :1
87+ ::: $DIR/offset_from_ub.rs:44 :1
8888 |
8989LL | / pub const DIFFERENT_INT: isize = { // offset_from with two different integers: like DIFFERENT_ALLOC
9090LL | |
0 commit comments