@@ -6,9 +6,9 @@ LL | unsafe { intrinsics::ptr_offset_from(self, origin) }
6
6
| |
7
7
| ptr_offset_from cannot compute offset of pointers into different allocations.
8
8
| inside `std::ptr::const_ptr::<impl *const Struct>::offset_from` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
9
- | inside `DIFFERENT_ALLOC` at $DIR/offset_from_ub.rs:17 :27
9
+ | inside `DIFFERENT_ALLOC` at $DIR/offset_from_ub.rs:16 :27
10
10
|
11
- ::: $DIR/offset_from_ub.rs:11 :1
11
+ ::: $DIR/offset_from_ub.rs:10 :1
12
12
|
13
13
LL | / pub const DIFFERENT_ALLOC: usize = {
14
14
LL | |
@@ -29,9 +29,9 @@ LL | unsafe { intrinsics::ptr_offset_from(self, origin) }
29
29
| |
30
30
| unable to turn bytes into a pointer
31
31
| inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
32
- | inside `NOT_PTR` at $DIR/offset_from_ub.rs:23 :14
32
+ | inside `NOT_PTR` at $DIR/offset_from_ub.rs:22 :14
33
33
|
34
- ::: $DIR/offset_from_ub.rs:21 :1
34
+ ::: $DIR/offset_from_ub.rs:20 :1
35
35
|
36
36
LL | / pub const NOT_PTR: usize = {
37
37
LL | |
@@ -47,9 +47,9 @@ LL | unsafe { intrinsics::ptr_offset_from(self, origin) }
47
47
| |
48
48
| exact_div: 1_isize cannot be divided by 2_isize without remainder
49
49
| inside `std::ptr::const_ptr::<impl *const u16>::offset_from` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
50
- | inside `NOT_MULTIPLE_OF_SIZE` at $DIR/offset_from_ub.rs:31 :14
50
+ | inside `NOT_MULTIPLE_OF_SIZE` at $DIR/offset_from_ub.rs:30 :14
51
51
|
52
- ::: $DIR/offset_from_ub.rs:26 :1
52
+ ::: $DIR/offset_from_ub.rs:25 :1
53
53
|
54
54
LL | / pub const NOT_MULTIPLE_OF_SIZE: isize = {
55
55
LL | |
@@ -68,9 +68,9 @@ LL | unsafe { intrinsics::ptr_offset_from(self, origin) }
68
68
| |
69
69
| inbounds test failed: 0x0 is not a valid pointer
70
70
| inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
71
- | inside `OFFSET_FROM_NULL` at $DIR/offset_from_ub.rs:37 :14
71
+ | inside `OFFSET_FROM_NULL` at $DIR/offset_from_ub.rs:36 :14
72
72
|
73
- ::: $DIR/offset_from_ub.rs:34 :1
73
+ ::: $DIR/offset_from_ub.rs:33 :1
74
74
|
75
75
LL | / pub const OFFSET_FROM_NULL: isize = {
76
76
LL | |
@@ -87,9 +87,9 @@ LL | unsafe { intrinsics::ptr_offset_from(self, origin) }
87
87
| |
88
88
| unable to turn bytes into a pointer
89
89
| inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
90
- | inside `DIFFERENT_INT` at $DIR/offset_from_ub.rs:44 :14
90
+ | inside `DIFFERENT_INT` at $DIR/offset_from_ub.rs:43 :14
91
91
|
92
- ::: $DIR/offset_from_ub.rs:40 :1
92
+ ::: $DIR/offset_from_ub.rs:39 :1
93
93
|
94
94
LL | / pub const DIFFERENT_INT: isize = { // offset_from with two different integers: like DIFFERENT_ALLOC
95
95
LL | |
0 commit comments