Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2843e64

Browse files
committedApr 21, 2018
turn ManuallyDrop::new into a constant function
1 parent d2577ca commit 2843e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libcore/mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ impl<T> ManuallyDrop<T> {
960960
/// ```
961961
#[stable(feature = "manually_drop", since = "1.20.0")]
962962
#[inline]
963-
pub fn new(value: T) -> ManuallyDrop<T> {
963+
pub const fn new(value: T) -> ManuallyDrop<T> {
964964
ManuallyDrop { value: value }
965965
}
966966

0 commit comments

Comments
 (0)
Please sign in to comment.