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

Commit 00cd2d6

Browse files
budziqdtolnay
authored andcommitted
stabilized needs_drop (fixes rust-lang#41890)
1 parent 8b82e3d commit 00cd2d6

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/libarena/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#![feature(core_intrinsics)]
2929
#![feature(dropck_eyepatch)]
3030
#![feature(generic_param_attrs)]
31-
#![feature(needs_drop)]
3231
#![cfg_attr(test, feature(test))]
3332

3433
#![allow(deprecated)]

src/libcore/mem.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
372372
/// Here's an example of how a collection might make use of needs_drop:
373373
///
374374
/// ```
375-
/// #![feature(needs_drop)]
376375
/// use std::{mem, ptr};
377376
///
378377
/// pub struct MyCollection<T> {
@@ -399,7 +398,7 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
399398
/// }
400399
/// ```
401400
#[inline]
402-
#[unstable(feature = "needs_drop", issue = "41890")]
401+
#[stable(feature = "needs_drop", since = "1.22.0")]
403402
pub fn needs_drop<T>() -> bool {
404403
unsafe { intrinsics::needs_drop::<T>() }
405404
}

src/libstd/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@
276276
#![feature(macro_reexport)]
277277
#![feature(macro_vis_matcher)]
278278
#![feature(needs_panic_runtime)]
279-
#![feature(needs_drop)]
280279
#![feature(never_type)]
281280
#![feature(num_bits_bytes)]
282281
#![feature(old_wrapping)]

0 commit comments

Comments
 (0)