We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b6caa7 + 1c17489 commit 00acb7bCopy full SHA for 00acb7b
src/libcore/mem.rs
@@ -459,7 +459,6 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
459
/// ```
460
#[inline]
461
#[stable(feature = "needs_drop", since = "1.21.0")]
462
-#[rustc_const_unstable(feature = "const_needs_drop")]
463
pub const fn needs_drop<T>() -> bool {
464
intrinsics::needs_drop::<T>()
465
}
src/test/run-pass/const-needs_drop.rs
@@ -1,5 +1,3 @@
1
-#![feature(const_needs_drop)]
2
-
3
use std::mem;
4
5
struct Trivial(u8, f32);
0 commit comments