Skip to content

Commit b61a4c2

Browse files
committed
make the const constructor unstable
1 parent 2843e64 commit b61a4c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/mem.rs

+1
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@ impl<T> ManuallyDrop<T> {
959959
/// ManuallyDrop::new(Box::new(()));
960960
/// ```
961961
#[stable(feature = "manually_drop", since = "1.20.0")]
962+
#[rustc_const_unstable(feature = "const_manually_drop_new")]
962963
#[inline]
963964
pub const fn new(value: T) -> ManuallyDrop<T> {
964965
ManuallyDrop { value: value }

0 commit comments

Comments
 (0)