Auto merge of #60364 - JohnTitor:stabilize-const-needs-drop, r=oli-obk

const-stabilize: std::mem::needs_drop

Closes #51929

r? @oli-obk
This commit is contained in:
bors 2019-04-29 09:48:11 +00:00
commit 00acb7b243
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] #[inline]
#[stable(feature = "needs_drop", since = "1.21.0")] #[stable(feature = "needs_drop", since = "1.21.0")]
#[rustc_const_unstable(feature = "const_needs_drop")]
pub const fn needs_drop<T>() -> bool { pub const fn needs_drop<T>() -> bool {
intrinsics::needs_drop::<T>() intrinsics::needs_drop::<T>()
} }

View File

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