const-stabilize std::mem::needs_drop

This commit is contained in:
Yuki OKUSHI 2019-04-29 12:41:06 +09:00
parent 938d4ffe16
commit 1c17489bfe
2 changed files with 0 additions and 3 deletions

View File

@ -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>()
}

View File

@ -1,5 +1,3 @@
#![feature(const_needs_drop)]
use std::mem;
struct Trivial(u8, f32);