@@ -109,8 +109,6 @@ note: inside `from_ptr_range::<'_, ()>`
109
109
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
110
110
note: inside `std::ptr::const_ptr::<impl *const ()>::offset_from_unsigned`
111
111
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
112
- |
113
- = note: the failure occurred here
114
112
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
115
113
116
114
error[E0080]: could not evaluate static initializer
@@ -121,8 +119,6 @@ LL | from_ptr_range(ptr..ptr.add(2)) // errors inside libcore
121
119
|
122
120
note: inside `std::ptr::const_ptr::<impl *const u32>::add`
123
121
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
124
- |
125
- = note: the failure occurred here
126
122
127
123
error[E0080]: it is undefined behavior to use this value
128
124
--> $DIR/forbidden_slices.rs:57:1
@@ -178,8 +174,6 @@ LL | from_ptr_range(ptr..ptr.add(1))
178
174
|
179
175
note: inside `std::ptr::const_ptr::<impl *const u64>::add`
180
176
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
181
- |
182
- = note: the failure occurred here
183
177
184
178
error[E0080]: could not evaluate static initializer
185
179
--> $DIR/forbidden_slices.rs:85:34
@@ -191,8 +185,6 @@ note: inside `from_ptr_range::<'_, u32>`
191
185
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
192
186
note: inside `std::ptr::const_ptr::<impl *const u32>::offset_from_unsigned`
193
187
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
194
- |
195
- = note: the failure occurred here
196
188
197
189
error[E0080]: could not evaluate static initializer
198
190
--> $DIR/forbidden_slices.rs:87:35
@@ -204,8 +196,6 @@ note: inside `from_ptr_range::<'_, u32>`
204
196
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
205
197
note: inside `std::ptr::const_ptr::<impl *const u32>::offset_from_unsigned`
206
198
--> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
207
- |
208
- = note: the failure occurred here
209
199
210
200
error: aborting due to 18 previous errors
211
201
0 commit comments