File tree 3 files changed +1
-4
lines changed
3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 28
28
#![ feature( core_intrinsics) ]
29
29
#![ feature( dropck_eyepatch) ]
30
30
#![ feature( generic_param_attrs) ]
31
- #![ feature( needs_drop) ]
32
31
#![ cfg_attr( test, feature( test) ) ]
33
32
34
33
#![ allow( deprecated) ]
Original file line number Diff line number Diff line change @@ -372,7 +372,6 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
372
372
/// Here's an example of how a collection might make use of needs_drop:
373
373
///
374
374
/// ```
375
- /// #![feature(needs_drop)]
376
375
/// use std::{mem, ptr};
377
376
///
378
377
/// pub struct MyCollection<T> {
@@ -399,7 +398,7 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
399
398
/// }
400
399
/// ```
401
400
#[ inline]
402
- #[ unstable ( feature = "needs_drop" , issue = "41890 " ) ]
401
+ #[ stable ( feature = "needs_drop" , since = "1.22.0 " ) ]
403
402
pub fn needs_drop < T > ( ) -> bool {
404
403
unsafe { intrinsics:: needs_drop :: < T > ( ) }
405
404
}
Original file line number Diff line number Diff line change 276
276
#![ feature( macro_reexport) ]
277
277
#![ feature( macro_vis_matcher) ]
278
278
#![ feature( needs_panic_runtime) ]
279
- #![ feature( needs_drop) ]
280
279
#![ feature( never_type) ]
281
280
#![ feature( num_bits_bytes) ]
282
281
#![ feature( old_wrapping) ]
You can’t perform that action at this time.
0 commit comments