diff options
| author | DutchGhost <kasper199914@gmail.com> | 2020-03-01 20:42:35 +0100 |
|---|---|---|
| committer | DutchGhost <kasper199914@gmail.com> | 2020-03-01 20:42:35 +0100 |
| commit | ae70ab071a3072f688bc09e431153b47f170907f (patch) | |
| tree | 06741270e013c9e632edf25ebb4d2caf67f9611c /src | |
| parent | 360e42de82152c4e1a6e70d2f228dd3748c50c8d (diff) | |
constify mem::forget
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/mem/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index 9eb151cf528..4ffd0141242 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -109,6 +109,7 @@ pub use crate::intrinsics::transmute; /// [ub]: ../../reference/behavior-considered-undefined.html /// [`ManuallyDrop`]: struct.ManuallyDrop.html #[inline] +#[rustc_const_unstable(feature = "const_forget", issue = "69616")] #[stable(feature = "rust1", since = "1.0.0")] pub fn forget<T>(t: T) { ManuallyDrop::new(t); |
