| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| ptr_offset_from cannot compute offset of pointers into different allocations.
- | inside call to `std::ptr::const_ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:19:27
+ | inside call to `std::ptr::const_ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:22:27
|
- ::: $DIR/offset_from_ub.rs:13:1
+ ::: $DIR/offset_from_ub.rs:16:1
|
LL | / pub const DIFFERENT_ALLOC: usize = {
LL | |
LL | intrinsics::ptr_offset_from(self, origin)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
- | a memory access tried to interpret some bytes as a pointer
- | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:25:14
+ | unable to turn bytes into a pointer
+ | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:28:14
|
- ::: $DIR/offset_from_ub.rs:23:1
+ ::: $DIR/offset_from_ub.rs:26:1
|
LL | / pub const NOT_PTR: usize = {
LL | |
LL | intrinsics::ptr_offset_from(self, origin)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
- | exact_div: 1 cannot be divided by 2 without remainder
- | inside call to `std::ptr::const_ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:33:14
+ | exact_div: 1isize cannot be divided by 2isize without remainder
+ | inside call to `std::ptr::const_ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:36:14
|
- ::: $DIR/offset_from_ub.rs:28:1
+ ::: $DIR/offset_from_ub.rs:31:1
|
LL | / pub const NOT_MULTIPLE_OF_SIZE: isize = {
LL | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| invalid use of NULL pointer
- | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:39:14
+ | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:42:14
|
- ::: $DIR/offset_from_ub.rs:36:1
+ ::: $DIR/offset_from_ub.rs:39:1
|
LL | / pub const OFFSET_FROM_NULL: isize = {
LL | |
LL | intrinsics::ptr_offset_from(self, origin)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
- | a memory access tried to interpret some bytes as a pointer
- | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:46:14
+ | unable to turn bytes into a pointer
+ | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:49:14
|
- ::: $DIR/offset_from_ub.rs:42:1
+ ::: $DIR/offset_from_ub.rs:45:1
|
LL | / pub const DIFFERENT_INT: isize = { // offset_from with two different integers: like DIFFERENT_ALLOC
LL | |