Skip to content

Commit 95d8aad

Browse files
authored
Rollup merge of rust-lang#91796 - not-my-profile:fix-const_manually_drop-since, r=kennytm
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
2 parents 7407c4e + e1c9a88 commit 95d8aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/mem/manually_drop.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<T> ManuallyDrop<T> {
6464
/// ```
6565
#[must_use = "if you don't need the wrapper, you can use `mem::forget` instead"]
6666
#[stable(feature = "manually_drop", since = "1.20.0")]
67-
#[rustc_const_stable(feature = "const_manually_drop", since = "1.36.0")]
67+
#[rustc_const_stable(feature = "const_manually_drop", since = "1.32.0")]
6868
#[inline(always)]
6969
pub const fn new(value: T) -> ManuallyDrop<T> {
7070
ManuallyDrop { value }
@@ -82,7 +82,7 @@ impl<T> ManuallyDrop<T> {
8282
/// let _: Box<()> = ManuallyDrop::into_inner(x); // This drops the `Box`.
8383
/// ```
8484
#[stable(feature = "manually_drop", since = "1.20.0")]
85-
#[rustc_const_stable(feature = "const_manually_drop", since = "1.36.0")]
85+
#[rustc_const_stable(feature = "const_manually_drop", since = "1.32.0")]
8686
#[inline(always)]
8787
pub const fn into_inner(slot: ManuallyDrop<T>) -> T {
8888
slot.value

0 commit comments

Comments
 (0)