summaryrefslogtreecommitdiff
path: root/src/rwlock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rwlock.rs')
-rw-r--r--src/rwlock.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rwlock.rs b/src/rwlock.rs
index fb40a71..f11b204 100644
--- a/src/rwlock.rs
+++ b/src/rwlock.rs
@@ -83,7 +83,8 @@ pub struct RwLockWriteRef<'a, T: ?Sized, R: RawRwLock>(&'a RwLock<T, R>);
pub struct RwLockReadGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> {
rwlock: RwLockReadRef<'a, T, R>,
thread_key: Key,
- _phantom: PhantomData<&'key ()>,
+ _phantom1: PhantomData<&'key ()>,
+ _phantom2: PhantomData<*const ()>,
}
/// RAII structure used to release the exclusive write access of a lock when
@@ -96,5 +97,6 @@ pub struct RwLockReadGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLoc
pub struct RwLockWriteGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> {
rwlock: RwLockWriteRef<'a, T, R>,
thread_key: Key,
- _phantom: PhantomData<&'key ()>,
+ _phantom1: PhantomData<&'key ()>,
+ _phantom2: PhantomData<*const ()>,
}