Commit defcd7f 1 parent 6a32e79 commit defcd7f Copy full SHA for defcd7f
File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 131
131
#![ feature( transparent_unions) ]
132
132
#![ feature( unboxed_closures) ]
133
133
#![ feature( unsized_locals) ]
134
- #![ feature( untagged_unions) ]
134
+ #![ cfg_attr ( bootstrap , feature( untagged_unions) ) ]
135
135
#![ feature( unwind_attributes) ]
136
136
#![ feature( variant_count) ]
137
137
#![ feature( tbm_target_feature) ]
Original file line number Diff line number Diff line change @@ -229,6 +229,16 @@ pub(crate) struct FatPtr<T> {
229
229
pub ( crate ) len : usize ,
230
230
}
231
231
232
+ // Manual impl needed to avoid `T: Clone` bound.
233
+ impl < T > Clone for FatPtr < T > {
234
+ fn clone ( & self ) -> Self {
235
+ * self
236
+ }
237
+ }
238
+
239
+ // Manual impl needed to avoid `T: Copy` bound.
240
+ impl < T > Copy for FatPtr < T > { }
241
+
232
242
/// Forms a raw slice from a pointer and a length.
233
243
///
234
244
/// The `len` argument is the number of **elements**, not the number of bytes.
Original file line number Diff line number Diff line change 319
319
#![ feature( unsafe_block_in_unsafe_fn) ]
320
320
#![ feature( unsafe_cell_get_mut) ]
321
321
#![ feature( unsafe_cell_raw_get) ]
322
- #![ feature( untagged_unions) ]
322
+ #![ cfg_attr ( bootstrap , feature( untagged_unions) ) ]
323
323
#![ feature( unwind_attributes) ]
324
324
#![ feature( vec_into_raw_parts) ]
325
325
#![ feature( wake_trait) ]
You can’t perform that action at this time.
0 commit comments