Skip to content

Commit 00acb7b

Browse files
committed
Auto merge of #60364 - JohnTitor:stabilize-const-needs-drop, r=oli-obk
const-stabilize: std::mem::needs_drop Closes #51929 r? @oli-obk
2 parents 1b6caa7 + 1c17489 commit 00acb7b

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/libcore/mem.rs

-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
459459
/// ```
460460
#[inline]
461461
#[stable(feature = "needs_drop", since = "1.21.0")]
462-
#[rustc_const_unstable(feature = "const_needs_drop")]
463462
pub const fn needs_drop<T>() -> bool {
464463
intrinsics::needs_drop::<T>()
465464
}

src/test/run-pass/const-needs_drop.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(const_needs_drop)]
2-
31
use std::mem;
42

53
struct Trivial(u8, f32);

0 commit comments

Comments
 (0)