diff options
| author | Martin Fischer <martin@push-f.com> | 2021-12-11 17:07:23 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2021-12-11 17:10:03 +0100 |
| commit | e1c9a88152fea67777549d397c17189157f6e6c2 (patch) | |
| tree | 8cde315b9e8957fef0aea294684bce7430227445 | |
| parent | b9a37ad0d995c71518629b032f8e816e1efa8bca (diff) | |
| download | rust-e1c9a88152fea67777549d397c17189157f6e6c2.tar.gz rust-e1c9a88152fea67777549d397c17189157f6e6c2.zip | |
Fix since attribute for const_manually_drop feature
const_manually_drop was stabilized in 1.32 as mentioned in https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1320-2019-01-17
| -rw-r--r-- | library/core/src/mem/manually_drop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/mem/manually_drop.rs b/library/core/src/mem/manually_drop.rs index 20b6453990d..f577f102e8d 100644 --- a/library/core/src/mem/manually_drop.rs +++ b/library/core/src/mem/manually_drop.rs @@ -64,7 +64,7 @@ impl<T> ManuallyDrop<T> { /// ``` #[must_use = "if you don't need the wrapper, you can use `mem::forget` instead"] #[stable(feature = "manually_drop", since = "1.20.0")] - #[rustc_const_stable(feature = "const_manually_drop", since = "1.36.0")] + #[rustc_const_stable(feature = "const_manually_drop", since = "1.32.0")] #[inline(always)] pub const fn new(value: T) -> ManuallyDrop<T> { ManuallyDrop { value } @@ -82,7 +82,7 @@ impl<T> ManuallyDrop<T> { /// let _: Box<()> = ManuallyDrop::into_inner(x); // This drops the `Box`. /// ``` #[stable(feature = "manually_drop", since = "1.20.0")] - #[rustc_const_stable(feature = "const_manually_drop", since = "1.36.0")] + #[rustc_const_stable(feature = "const_manually_drop", since = "1.32.0")] #[inline(always)] pub const fn into_inner(slot: ManuallyDrop<T>) -> T { slot.value |
