@@ -6,8 +6,6 @@ LL | pub const BEFORE_START: *const u8 = unsafe { (&0u8 as *const u8).offset(-1)
6
6
|
7
7
note: inside `std::ptr::const_ptr::<impl *const u8>::offset`
8
8
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
9
- |
10
- = note: the failure occurred here
11
9
12
10
error[E0080]: evaluation of constant value failed
13
11
--> $DIR/offset_ub.rs:9:43
@@ -17,8 +15,6 @@ LL | pub const AFTER_END: *const u8 = unsafe { (&0u8 as *const u8).offset(2) };
17
15
|
18
16
note: inside `std::ptr::const_ptr::<impl *const u8>::offset`
19
17
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
20
- |
21
- = note: the failure occurred here
22
18
23
19
error[E0080]: evaluation of constant value failed
24
20
--> $DIR/offset_ub.rs:10:45
@@ -28,8 +24,6 @@ LL | pub const AFTER_ARRAY: *const u8 = unsafe { [0u8; 100].as_ptr().offset(101)
28
24
|
29
25
note: inside `std::ptr::const_ptr::<impl *const u8>::offset`
30
26
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
31
- |
32
- = note: the failure occurred here
33
27
34
28
error[E0080]: evaluation of constant value failed
35
29
--> $DIR/offset_ub.rs:12:43
@@ -39,8 +33,6 @@ LL | pub const OVERFLOW: *const u16 = unsafe { [0u16; 1].as_ptr().offset(isize::
39
33
|
40
34
note: inside `std::ptr::const_ptr::<impl *const u16>::offset`
41
35
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
42
- |
43
- = note: the failure occurred here
44
36
45
37
error[E0080]: evaluation of constant value failed
46
38
--> $DIR/offset_ub.rs:13:44
@@ -50,8 +42,6 @@ LL | pub const UNDERFLOW: *const u16 = unsafe { [0u16; 1].as_ptr().offset(isize:
50
42
|
51
43
note: inside `std::ptr::const_ptr::<impl *const u16>::offset`
52
44
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
53
- |
54
- = note: the failure occurred here
55
45
56
46
error[E0080]: evaluation of constant value failed
57
47
--> $DIR/offset_ub.rs:14:56
@@ -61,8 +51,6 @@ LL | pub const OVERFLOW_ADDRESS_SPACE: *const u8 = unsafe { (usize::MAX as *cons
61
51
|
62
52
note: inside `std::ptr::const_ptr::<impl *const u8>::offset`
63
53
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
64
- |
65
- = note: the failure occurred here
66
54
67
55
error[E0080]: evaluation of constant value failed
68
56
--> $DIR/offset_ub.rs:15:57
@@ -72,8 +60,6 @@ LL | pub const UNDERFLOW_ADDRESS_SPACE: *const u8 = unsafe { (1 as *const u8).of
72
60
|
73
61
note: inside `std::ptr::const_ptr::<impl *const u8>::offset`
74
62
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
75
- |
76
- = note: the failure occurred here
77
63
78
64
error[E0080]: evaluation of constant value failed
79
65
--> $DIR/offset_ub.rs:16:49
@@ -83,8 +69,6 @@ LL | pub const NEGATIVE_OFFSET: *const u8 = unsafe { [0u8; 1].as_ptr().wrapping_
83
69
|
84
70
note: inside `std::ptr::const_ptr::<impl *const u8>::offset`
85
71
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
86
- |
87
- = note: the failure occurred here
88
72
89
73
error[E0080]: evaluation of constant value failed
90
74
--> $DIR/offset_ub.rs:18:50
@@ -94,8 +78,6 @@ LL | pub const ZERO_SIZED_ALLOC: *const u8 = unsafe { [0u8; 0].as_ptr().offset(1
94
78
|
95
79
note: inside `std::ptr::const_ptr::<impl *const u8>::offset`
96
80
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
97
- |
98
- = note: the failure occurred here
99
81
100
82
error[E0080]: evaluation of constant value failed
101
83
--> $DIR/offset_ub.rs:19:42
@@ -105,8 +87,6 @@ LL | pub const DANGLING: *const u8 = unsafe { ptr::NonNull::<u8>::dangling().as_
105
87
|
106
88
note: inside `std::ptr::mut_ptr::<impl *mut u8>::offset`
107
89
--> $SRC_DIR/core/src/ptr/mut_ptr.rs:LL:COL
108
- |
109
- = note: the failure occurred here
110
90
111
91
error[E0080]: evaluation of constant value failed
112
92
--> $DIR/offset_ub.rs:22:47
@@ -116,8 +96,6 @@ LL | pub const UNDERFLOW_ABS: *const u8 = unsafe { (usize::MAX as *const u8).off
116
96
|
117
97
note: inside `std::ptr::const_ptr::<impl *const u8>::offset`
118
98
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
119
- |
120
- = note: the failure occurred here
121
99
122
100
error: aborting due to 11 previous errors
123
101
0 commit comments