Skip to content

Commit

Permalink
Fix cfg bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
notgull committed Aug 26, 2022
1 parent 9c7c85c commit d435120
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lock_api/src/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,10 +684,12 @@ pub struct ArcMutexGuard<R: RawMutex, T: ?Sized> {
marker: PhantomData<*const ()>,
}

unsafe impl<R: RawMutex + Send + Sync, T: Send + Sync + ?Sized> Send for ArcMutexGuard<R, T> where
#[cfg(feature = "arc_lock")]
unsafe impl<R: RawMutex + Send + Sync, T: Send + ?Sized> Send for ArcMutexGuard<R, T> where
R::GuardMarker: Send
{
}
#[cfg(feature = "arc_lock")]
unsafe impl<R: RawMutex + Sync, T: Sync + ?Sized> Sync for ArcMutexGuard<R, T> where
R::GuardMarker: Sync
{
Expand Down

0 comments on commit d435120

Please sign in to comment.