Skip to content

Commit

Permalink
Auto merge of #60364 - JohnTitor:stabilize-const-needs-drop, r=oli-obk
Browse files Browse the repository at this point in the history
const-stabilize: std::mem::needs_drop

Closes #51929

r? @oli-obk
  • Loading branch information
bors committed Apr 29, 2019
2 parents 1b6caa7 + 1c17489 commit 00acb7b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
/// ```
#[inline]
#[stable(feature = "needs_drop", since = "1.21.0")]
#[rustc_const_unstable(feature = "const_needs_drop")]
pub const fn needs_drop<T>() -> bool {
intrinsics::needs_drop::<T>()
}
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/const-needs_drop.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(const_needs_drop)]

use std::mem;

struct Trivial(u8, f32);
Expand Down

0 comments on commit 00acb7b

Please sign in to comment.