1
1
error: any use of this value will cause an error
2
- --> $SRC_DIR/libcore/ptr/mod .rs:LL:COL
2
+ --> $SRC_DIR/libcore/ptr/const_ptr .rs:LL:COL
3
3
|
4
4
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::<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:19:27
9
9
|
10
10
::: $DIR/offset_from_ub.rs:13:1
11
11
|
@@ -21,13 +21,13 @@ LL | | };
21
21
= note: `#[deny(const_err)]` on by default
22
22
23
23
error: any use of this value will cause an error
24
- --> $SRC_DIR/libcore/ptr/mod .rs:LL:COL
24
+ --> $SRC_DIR/libcore/ptr/const_ptr .rs:LL:COL
25
25
|
26
26
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::<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:25:14
31
31
|
32
32
::: $DIR/offset_from_ub.rs:23:1
33
33
|
@@ -38,13 +38,13 @@ LL | | };
38
38
| |__-
39
39
40
40
error: any use of this value will cause an error
41
- --> $SRC_DIR/libcore/ptr/mod .rs:LL:COL
41
+ --> $SRC_DIR/libcore/ptr/const_ptr .rs:LL:COL
42
42
|
43
43
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::<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:33:14
48
48
|
49
49
::: $DIR/offset_from_ub.rs:28:1
50
50
|
@@ -58,13 +58,13 @@ LL | | };
58
58
| |__-
59
59
60
60
error: any use of this value will cause an error
61
- --> $SRC_DIR/libcore/ptr/mod .rs:LL:COL
61
+ --> $SRC_DIR/libcore/ptr/const_ptr .rs:LL:COL
62
62
|
63
63
LL | intrinsics::ptr_offset_from(self, origin)
64
64
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65
65
| |
66
66
| invalid use of NULL pointer
67
- | inside call to `std::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:39:14
68
68
|
69
69
::: $DIR/offset_from_ub.rs:36:1
70
70
|
@@ -76,13 +76,13 @@ LL | | };
76
76
| |__-
77
77
78
78
error: any use of this value will cause an error
79
- --> $SRC_DIR/libcore/ptr/mod .rs:LL:COL
79
+ --> $SRC_DIR/libcore/ptr/const_ptr .rs:LL:COL
80
80
|
81
81
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::<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:46:14
86
86
|
87
87
::: $DIR/offset_from_ub.rs:42:1
88
88
|
0 commit comments