Skip to content

Commit

Permalink
impl for ManuallyDrop
Browse files Browse the repository at this point in the history
Reviewed By: JakobDegen

Differential Revision: D56208259

fbshipit-source-id: 701f9d9b0b81f8aeddc2841b48516a643e095ede
  • Loading branch information
stepancheg authored and facebook-github-bot committed Apr 16, 2024
1 parent 3337cc7 commit 293532e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gazebo/dupe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub(crate) mod iter;
pub(crate) mod option;

use std::cell::Cell;
use std::mem::ManuallyDrop;
use std::num::*;
use std::rc::Rc;
use std::sync::Arc;
Expand Down Expand Up @@ -45,6 +46,7 @@ impl<A: ?Sized> Dupe for std::sync::Weak<A> {}
impl<A: ?Sized> Dupe for Rc<A> {}
impl<A: ?Sized> Dupe for std::rc::Weak<A> {}
impl<A: Copy> Dupe for Cell<A> {}
impl<A: Dupe> Dupe for ManuallyDrop<A> {}

// Small containers
impl<A: Dupe> Dupe for Option<A> {}
Expand Down

0 comments on commit 293532e

Please sign in to comment.