]> git.lizzy.rs Git - rust.git/commitdiff
const-stabilize std::mem::needs_drop
authorYuki OKUSHI <huyuumi.dev@gmail.com>
Mon, 29 Apr 2019 03:41:06 +0000 (12:41 +0900)
committerYuki OKUSHI <huyuumi.dev@gmail.com>
Mon, 29 Apr 2019 03:41:06 +0000 (12:41 +0900)
src/libcore/mem.rs
src/test/run-pass/const-needs_drop.rs

index 95480c6bf048dd5bd3af0b5ba44762cf9abc499f..5bd442bc0664f12acd7c308ddf374115840d1a2f 100644 (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>()
 }
index 9d9dffb530737b4a3195f8f04083cd2800378dac..871300defaf8a7a656f8ab92799a362cf22d1112 100644 (file)
@@ -1,5 +1,3 @@
-#![feature(const_needs_drop)]
-
 use std::mem;
 
 struct Trivial(u8, f32);