about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-11 17:07:23 +0100
committerMartin Fischer <martin@push-f.com>2021-12-11 17:10:03 +0100
commite1c9a88152fea67777549d397c17189157f6e6c2 (patch)
tree8cde315b9e8957fef0aea294684bce7430227445
parentb9a37ad0d995c71518629b032f8e816e1efa8bca (diff)
downloadrust-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.rs4
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