diff options
| author | Michael Bradshaw <mjbshaw@google.com> | 2018-09-26 14:46:14 -0700 |
|---|---|---|
| committer | Michael Bradshaw <mjbshaw@google.com> | 2018-09-26 14:46:14 -0700 |
| commit | 2c3c8822e057c4ed972d0ce736b089c11afeaac3 (patch) | |
| tree | 57e2fb72f40aee67dc350095a142941fe79009c9 /src/libcore | |
| parent | c0769545b0c2d9c1891b3d6c58de21ddb765b9f1 (diff) | |
| download | rust-2c3c8822e057c4ed972d0ce736b089c11afeaac3.tar.gz rust-2c3c8822e057c4ed972d0ce736b089c11afeaac3.zip | |
Gate const core::mem::needs_drop behind const_needs_drop
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/mem.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 13c0b89f5df..dd3775bff5e 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -483,6 +483,7 @@ 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")] #[cfg(not(stage0))] pub const fn needs_drop<T>() -> bool { intrinsics::needs_drop::<T>() |
