]> git.lizzy.rs Git - rust.git/commitdiff
stabilized needs_drop (fixes #41890)
authorMichal Budzynski <budziq@gmail.com>
Sat, 16 Sep 2017 21:41:04 +0000 (23:41 +0200)
committerMichal Budzynski <budziq@gmail.com>
Sat, 16 Sep 2017 21:41:04 +0000 (23:41 +0200)
src/libarena/lib.rs
src/libcore/mem.rs
src/libstd/lib.rs

index 96fcc81e8e6edfaabaa78e99e73ec23bbebd00a1..2be7b1bc2e17c8572c247de67744cb432ea4a1d9 100644 (file)
@@ -28,7 +28,6 @@
 #![feature(core_intrinsics)]
 #![feature(dropck_eyepatch)]
 #![feature(generic_param_attrs)]
-#![feature(needs_drop)]
 #![cfg_attr(test, feature(test))]
 
 #![allow(deprecated)]
index 3e24623dad89533f57975c00abc6c427d399cf9b..34994dc3b70f3a4e1910f929a9a2e2216f62300b 100644 (file)
@@ -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>() }
 }
index aa1337a9da050f9a6117bbe6b0ea2c51bf7b2055..1a0f8b8d2177e074c7e42e33a0e097328a19c6ba 100644 (file)
 #![feature(macro_reexport)]
 #![feature(macro_vis_matcher)]
 #![feature(needs_panic_runtime)]
-#![feature(needs_drop)]
 #![feature(never_type)]
 #![feature(num_bits_bytes)]
 #![feature(old_wrapping)]