@@ -5,6 +5,7 @@ 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 `std::ptr::const_ptr::<impl *const Struct>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
8
9
| inside `DIFFERENT_ALLOC` at $DIR/offset_from_ub.rs:22:27
9
10
|
10
11
::: $DIR/offset_from_ub.rs:16:1
@@ -27,6 +28,7 @@ LL | intrinsics::ptr_offset_from(self, origin)
27
28
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
29
| |
29
30
| unable to turn bytes into a pointer
31
+ | inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
30
32
| inside `NOT_PTR` at $DIR/offset_from_ub.rs:28:14
31
33
|
32
34
::: $DIR/offset_from_ub.rs:26:1
@@ -44,6 +46,7 @@ LL | intrinsics::ptr_offset_from(self, origin)
44
46
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
47
| |
46
48
| exact_div: 1isize cannot be divided by 2isize without remainder
49
+ | inside `std::ptr::const_ptr::<impl *const u16>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
47
50
| inside `NOT_MULTIPLE_OF_SIZE` at $DIR/offset_from_ub.rs:36:14
48
51
|
49
52
::: $DIR/offset_from_ub.rs:31:1
@@ -64,6 +67,7 @@ LL | intrinsics::ptr_offset_from(self, origin)
64
67
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65
68
| |
66
69
| invalid use of NULL pointer
70
+ | inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
67
71
| inside `OFFSET_FROM_NULL` at $DIR/offset_from_ub.rs:42:14
68
72
|
69
73
::: $DIR/offset_from_ub.rs:39:1
@@ -82,6 +86,7 @@ LL | intrinsics::ptr_offset_from(self, origin)
82
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83
87
| |
84
88
| unable to turn bytes into a pointer
89
+ | inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
85
90
| inside `DIFFERENT_INT` at $DIR/offset_from_ub.rs:49:14
86
91
|
87
92
::: $DIR/offset_from_ub.rs:45:1
0 commit comments