@@ -5,9 +5,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
| |
7
7
| 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:20 :27
8
+ | inside call to `std::ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:19 :27
9
9
|
10
- ::: $DIR/offset_from_ub.rs:14 :1
10
+ ::: $DIR/offset_from_ub.rs:13 :1
11
11
|
12
12
LL | / pub const DIFFERENT_ALLOC: usize = {
13
13
LL | |
@@ -27,9 +27,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
27
27
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
28
| |
29
29
| 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:26 :14
30
+ | inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:25 :14
31
31
|
32
- ::: $DIR/offset_from_ub.rs:24 :1
32
+ ::: $DIR/offset_from_ub.rs:23 :1
33
33
|
34
34
LL | / pub const NOT_PTR: usize = {
35
35
LL | |
@@ -44,9 +44,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
44
44
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
45
| |
46
46
| 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:34 :27
47
+ | inside call to `std::ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:33 :27
48
48
|
49
- ::: $DIR/offset_from_ub.rs:29 :1
49
+ ::: $DIR/offset_from_ub.rs:28 :1
50
50
|
51
51
LL | / pub const NOT_MULTIPLE_OF_SIZE: usize = {
52
52
LL | |
0 commit comments