From 1c17489bfefb2dc81e7d1d4ec47405ba8d9461ca Mon Sep 17 00:00:00 2001 From: Yuki OKUSHI Date: Mon, 29 Apr 2019 12:41:06 +0900 Subject: [PATCH] const-stabilize std::mem::needs_drop --- src/libcore/mem.rs | 1 - src/test/run-pass/const-needs_drop.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 95480c6bf04..5bd442bc066 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -459,7 +459,6 @@ pub fn align_of_val(val: &T) -> usize { /// ``` #[inline] #[stable(feature = "needs_drop", since = "1.21.0")] -#[rustc_const_unstable(feature = "const_needs_drop")] pub const fn needs_drop() -> bool { intrinsics::needs_drop::() } diff --git a/src/test/run-pass/const-needs_drop.rs b/src/test/run-pass/const-needs_drop.rs index 9d9dffb5307..871300defaf 100644 --- a/src/test/run-pass/const-needs_drop.rs +++ b/src/test/run-pass/const-needs_drop.rs @@ -1,5 +1,3 @@ -#![feature(const_needs_drop)] - use std::mem; struct Trivial(u8, f32);