Skip to content

Commit cede6b9

Browse files
stepanchegfacebook-github-bot
authored andcommitted
impl for ManuallyDrop
Reviewed By: JakobDegen Differential Revision: D56208259 fbshipit-source-id: 701f9d9b0b81f8aeddc2841b48516a643e095ede
1 parent c8f22c4 commit cede6b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dupe/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub(crate) mod iter;
1414
pub(crate) mod option;
1515

1616
use std::cell::Cell;
17+
use std::mem::ManuallyDrop;
1718
use std::num::*;
1819
use std::rc::Rc;
1920
use std::sync::Arc;
@@ -45,6 +46,7 @@ impl<A: ?Sized> Dupe for std::sync::Weak<A> {}
4546
impl<A: ?Sized> Dupe for Rc<A> {}
4647
impl<A: ?Sized> Dupe for std::rc::Weak<A> {}
4748
impl<A: Copy> Dupe for Cell<A> {}
49+
impl<A: Dupe> Dupe for ManuallyDrop<A> {}
4850

4951
// Small containers
5052
impl<A: Dupe> Dupe for Option<A> {}

0 commit comments

Comments
 (0)