You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ptr_offset_from` called on two different pointers where the memory range between them is not in-bounds of an allocation
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ptr_offset_from` called on two different pointers where the memory range between them is not in-bounds of an allocation
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ptr_offset_from_unsigned` called on two different pointers that are not both derived from the same allocation
49
49
50
50
error[E0080]: evaluation of constant value failed
51
-
--> $DIR/offset_from_ub.rs:73:14
51
+
--> $DIR/offset_from_ub.rs:72:14
52
52
|
53
53
LL | unsafe { ptr_offset_from(ptr2, ptr1) }
54
54
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ptr_offset_from` called when first pointer is too far ahead of second
55
55
56
56
error[E0080]: evaluation of constant value failed
57
-
--> $DIR/offset_from_ub.rs:79:14
57
+
--> $DIR/offset_from_ub.rs:78:14
58
58
|
59
59
LL | unsafe { ptr_offset_from(ptr1, ptr2) }
60
60
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ptr_offset_from` called when first pointer is too far before second
61
61
62
62
error[E0080]: evaluation of constant value failed
63
-
--> $DIR/offset_from_ub.rs:87:14
63
+
--> $DIR/offset_from_ub.rs:86:14
64
64
|
65
65
LL | unsafe { ptr_offset_from(ptr1, ptr2) }
66
66
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ptr_offset_from` called when first pointer is too far before second
0 commit comments