@@ -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::const_ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:19 :27
8
+ | inside call to `std::ptr::const_ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:22 :27
9
9
|
10
- ::: $DIR/offset_from_ub.rs:13 :1
10
+ ::: $DIR/offset_from_ub.rs:16 :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::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:25 :14
30
+ | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:28 :14
31
31
|
32
- ::: $DIR/offset_from_ub.rs:23 :1
32
+ ::: $DIR/offset_from_ub.rs:26 :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::const_ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:33 :14
47
+ | inside call to `std::ptr::const_ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:36 :14
48
48
|
49
- ::: $DIR/offset_from_ub.rs:28 :1
49
+ ::: $DIR/offset_from_ub.rs:31 :1
50
50
|
51
51
LL | / pub const NOT_MULTIPLE_OF_SIZE: isize = {
52
52
LL | |
@@ -64,9 +64,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
64
64
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65
65
| |
66
66
| invalid use of NULL pointer
67
- | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:39 :14
67
+ | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:42 :14
68
68
|
69
- ::: $DIR/offset_from_ub.rs:36 :1
69
+ ::: $DIR/offset_from_ub.rs:39 :1
70
70
|
71
71
LL | / pub const OFFSET_FROM_NULL: isize = {
72
72
LL | |
@@ -82,9 +82,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
82
82
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83
83
| |
84
84
| a memory access tried to interpret some bytes as a pointer
85
- | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:46 :14
85
+ | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:49 :14
86
86
|
87
- ::: $DIR/offset_from_ub.rs:42 :1
87
+ ::: $DIR/offset_from_ub.rs:45 :1
88
88
|
89
89
LL | / pub const DIFFERENT_INT: isize = { // offset_from with two different integers: like DIFFERENT_ALLOC
90
90
LL | |
0 commit comments