about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichal Budzynski <budziq@gmail.com>2017-09-16 23:41:04 +0200
committerMichal Budzynski <budziq@gmail.com>2017-09-16 23:41:04 +0200
commit04855950b9d93cc9409891eb6368257299ffcfca (patch)
treef629cdd25be6ad0f95b7f5fa63cf41c5299544ae
parentae8efdc87d5f4e22e05e1b60a72272cee87fa74c (diff)
downloadrust-04855950b9d93cc9409891eb6368257299ffcfca.tar.gz
rust-04855950b9d93cc9409891eb6368257299ffcfca.zip
stabilized needs_drop (fixes #41890)
-rw-r--r--src/libarena/lib.rs1
-rw-r--r--src/libcore/mem.rs3
-rw-r--r--src/libstd/lib.rs1
3 files changed, 1 insertions, 4 deletions
diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs
index 96fcc81e8e6..2be7b1bc2e1 100644
--- a/src/libarena/lib.rs
+++ b/src/libarena/lib.rs
@@ -28,7 +28,6 @@
 #![feature(core_intrinsics)]
 #![feature(dropck_eyepatch)]
 #![feature(generic_param_attrs)]
-#![feature(needs_drop)]
 #![cfg_attr(test, feature(test))]
 
 #![allow(deprecated)]
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs
index 3e24623dad8..34994dc3b70 100644
--- a/src/libcore/mem.rs
+++ b/src/libcore/mem.rs
@@ -332,7 +332,6 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
 /// Here's an example of how a collection might make use of needs_drop:
 ///
 /// ```
-/// #![feature(needs_drop)]
 /// use std::{mem, ptr};
 ///
 /// pub struct MyCollection<T> {
@@ -359,7 +358,7 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
 /// }
 /// ```
 #[inline]
-#[unstable(feature = "needs_drop", issue = "41890")]
+#[stable(feature = "needs_drop", since = "1.22.0")]
 pub fn needs_drop<T>() -> bool {
     unsafe { intrinsics::needs_drop::<T>() }
 }
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index aa1337a9da0..1a0f8b8d217 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -276,7 +276,6 @@
 #![feature(macro_reexport)]
 #![feature(macro_vis_matcher)]
 #![feature(needs_panic_runtime)]
-#![feature(needs_drop)]
 #![feature(never_type)]
 #![feature(num_bits_bytes)]
 #![feature(old_wrapping)]