const-stabilize std::mem::needs_drop
This commit is contained in:
parent
938d4ffe16
commit
1c17489bfe
@ -459,7 +459,6 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "needs_drop", since = "1.21.0")]
|
||||
#[rustc_const_unstable(feature = "const_needs_drop")]
|
||||
pub const fn needs_drop<T>() -> bool {
|
||||
intrinsics::needs_drop::<T>()
|
||||
}
|
||||
|
@ -1,5 +1,3 @@
|
||||
#![feature(const_needs_drop)]
|
||||
|
||||
use std::mem;
|
||||
|
||||
struct Trivial(u8, f32);
|
||||
|
Loading…
Reference in New Issue
Block a user