Skip to content

Commit f62e9bd

Browse files
committed
---
yaml --- r: 171314 b: refs/heads/batch c: 956cab6 h: refs/heads/master v: v3
1 parent 706c648 commit f62e9bd

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 2dcbdc1edac50af0f1a2796b1dfe2dd082f8190c
32+
refs/heads/batch: 956cab6f97c1841e6f3f00acb6386f07eddfc25e
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/libstd/sync/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub use alloc::arc::{Arc, Weak};
2222
pub use self::mutex::{Mutex, MutexGuard, StaticMutex};
2323
pub use self::mutex::MUTEX_INIT;
2424
pub use self::rwlock::{RwLock, StaticRwLock, RW_LOCK_INIT};
25-
pub use self::rwlock::{RWLockReadGuard, RWLockWriteGuard};
25+
pub use self::rwlock::{RwLockReadGuard, RWLockWriteGuard};
2626
pub use self::condvar::{Condvar, StaticCondvar, CONDVAR_INIT};
2727
pub use self::once::{Once, ONCE_INIT};
2828
pub use self::semaphore::{Semaphore, SemaphoreGuard};

branches/batch/src/libstd/sync/rwlock.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ impl<T: Send + Sync> RwLock<T> {
153153
/// The failure will occur immediately after the lock has been acquired.
154154
#[inline]
155155
#[stable]
156-
pub fn read(&self) -> LockResult<RWLockReadGuard<T>> {
156+
pub fn read(&self) -> LockResult<RwLockReadGuard<T>> {
157157
unsafe { self.inner.lock.read() }
158-
RWLockReadGuard::new(&*self.inner, &self.data)
158+
RwLockReadGuard::new(&*self.inner, &self.data)
159159
}
160160

161161
/// Attempt to acquire this lock with shared read access.
@@ -175,9 +175,9 @@ impl<T: Send + Sync> RwLock<T> {
175175
/// acquired.
176176
#[inline]
177177
#[stable]
178-
pub fn try_read(&self) -> TryLockResult<RWLockReadGuard<T>> {
178+
pub fn try_read(&self) -> TryLockResult<RwLockReadGuard<T>> {
179179
if unsafe { self.inner.lock.try_read() } {
180-
Ok(try!(RWLockReadGuard::new(&*self.inner, &self.data)))
180+
Ok(try!(RwLockReadGuard::new(&*self.inner, &self.data)))
181181
} else {
182182
Err(TryLockError::WouldBlock)
183183
}
@@ -245,9 +245,9 @@ impl StaticRwLock {
245245
/// See `RwLock::read`.
246246
#[inline]
247247
#[unstable = "may be merged with RwLock in the future"]
248-
pub fn read(&'static self) -> LockResult<RWLockReadGuard<'static, ()>> {
248+
pub fn read(&'static self) -> LockResult<RwLockReadGuard<'static, ()>> {
249249
unsafe { self.lock.read() }
250-
RWLockReadGuard::new(self, &DUMMY.0)
250+
RwLockReadGuard::new(self, &DUMMY.0)
251251
}
252252

253253
/// Attempt to acquire this lock with shared read access.
@@ -256,9 +256,9 @@ impl StaticRwLock {
256256
#[inline]
257257
#[unstable = "may be merged with RwLock in the future"]
258258
pub fn try_read(&'static self)
259-
-> TryLockResult<RWLockReadGuard<'static, ()>> {
259+
-> TryLockResult<RwLockReadGuard<'static, ()>> {
260260
if unsafe { self.lock.try_read() } {
261-
Ok(try!(RWLockReadGuard::new(self, &DUMMY.0)))
261+
Ok(try!(RwLockReadGuard::new(self, &DUMMY.0)))
262262
} else {
263263
Err(TryLockError::WouldBlock)
264264
}

0 commit comments

Comments
 (0)