Skip to content

Commit

Permalink
make the const constructor unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed May 7, 2018
1 parent 2843e64 commit b61a4c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ impl<T> ManuallyDrop<T> {
/// ManuallyDrop::new(Box::new(()));
/// ```
#[stable(feature = "manually_drop", since = "1.20.0")]
#[rustc_const_unstable(feature = "const_manually_drop_new")]
#[inline]
pub const fn new(value: T) -> ManuallyDrop<T> {
ManuallyDrop { value: value }
Expand Down

0 comments on commit b61a4c2

Please sign in to comment.