Skip to content

Commit

Permalink
reinstall explicit Send impl
Browse files Browse the repository at this point in the history
This stuff is subtle, better not to rely on implicit behavior.
  • Loading branch information
matklad committed Jun 4, 2023
1 parent 51a9724 commit b2c0116
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imp_std.rs
Expand Up @@ -30,6 +30,7 @@ pub(crate) struct OnceCell<T> {
// then destroyed by A. That is, destructor observes
// a sent value.
unsafe impl<T: Sync + Send> Sync for OnceCell<T> {}
unsafe impl<T: Send> Send for OnceCell<T> {}

impl<T: RefUnwindSafe + UnwindSafe> RefUnwindSafe for OnceCell<T> {}
impl<T: UnwindSafe> UnwindSafe for OnceCell<T> {}
Expand Down

0 comments on commit b2c0116

Please sign in to comment.