Skip to content
/ rust Public
forked from rust-lang/rust

Commit

Permalink
stabilized needs_drop (fixes rust-lang#41890)
Browse files Browse the repository at this point in the history
  • Loading branch information
budziq authored and dtolnay committed Sep 25, 2017
1 parent 8b82e3d commit 00cd2d6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/libarena/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#![feature(core_intrinsics)]
#![feature(dropck_eyepatch)]
#![feature(generic_param_attrs)]
#![feature(needs_drop)]
#![cfg_attr(test, feature(test))]

#![allow(deprecated)]
Expand Down
3 changes: 1 addition & 2 deletions src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,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> {
Expand All @@ -399,7 +398,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>() }
}
Expand Down
1 change: 0 additions & 1 deletion src/libstd/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 00cd2d6

Please sign in to comment.