Skip to content

Commit 1be3476

Browse files
committed
---
yaml --- r: 168933 b: refs/heads/snap-stage3 c: c3dcf9b h: refs/heads/master i: 168931: 8571f79 v: v3
1 parent 146bd93 commit 1be3476

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5e21e17d9638d14af41e27e5ca9a21c8a1bc0170
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5344ae2d4f66f5e8392b325320eeec0af29f503c
4+
refs/heads/snap-stage3: c3dcf9b6bf7b3de4b7b4f51725f2ab814cbdfd38
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libstd/sync/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub use alloc::arc::{Arc, Weak};
2121

2222
pub use self::mutex::{Mutex, MutexGuard, StaticMutex};
2323
pub use self::mutex::MUTEX_INIT;
24-
pub use self::rwlock::{RwLock, StaticRwLock, RWLOCK_INIT};
24+
pub use self::rwlock::{RwLock, StaticRwLock, RW_LOCK_INIT};
2525
pub use self::rwlock::{RWLockReadGuard, RWLockWriteGuard};
2626
pub use self::condvar::{Condvar, StaticCondvar, CONDVAR_INIT};
2727
pub use self::once::{Once, ONCE_INIT};

branches/snap-stage3/src/libstd/sync/rwlock.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ unsafe impl<T> Sync for RwLock<T> {}
7676
/// # Example
7777
///
7878
/// ```
79-
/// use std::sync::{StaticRwLock, RWLOCK_INIT};
79+
/// use std::sync::{StaticRwLock, RW_LOCK_INIT};
8080
///
81-
/// static LOCK: StaticRwLock = RWLOCK_INIT;
81+
/// static LOCK: StaticRwLock = RW_LOCK_INIT;
8282
///
8383
/// {
8484
/// let _g = LOCK.read().unwrap();
@@ -131,7 +131,7 @@ impl<T: Send + Sync> RwLock<T> {
131131
/// Creates a new instance of an RwLock which is unlocked and read to go.
132132
#[stable]
133133
pub fn new(t: T) -> RwLock<T> {
134-
RwLock { inner: box RWLOCK_INIT, data: UnsafeCell::new(t) }
134+
RwLock { inner: box RW_LOCK_INIT, data: UnsafeCell::new(t) }
135135
}
136136

137137
/// Locks this rwlock with shared read access, blocking the current thread
@@ -365,7 +365,7 @@ mod tests {
365365
use rand::{mod, Rng};
366366
use sync::mpsc::channel;
367367
use thread::Thread;
368-
use sync::{Arc, RwLock, StaticRwLock, RWLOCK_INIT};
368+
use sync::{Arc, RwLock, StaticRwLock, RW_LOCK_INIT};
369369

370370
#[test]
371371
fn smoke() {
@@ -378,7 +378,7 @@ mod tests {
378378

379379
#[test]
380380
fn static_smoke() {
381-
static R: StaticRwLock = RWLOCK_INIT;
381+
static R: StaticRwLock = RW_LOCK_INIT;
382382
drop(R.read().unwrap());
383383
drop(R.write().unwrap());
384384
drop((R.read().unwrap(), R.read().unwrap()));
@@ -388,7 +388,7 @@ mod tests {
388388

389389
#[test]
390390
fn frob() {
391-
static R: StaticRwLock = RWLOCK_INIT;
391+
static R: StaticRwLock = RW_LOCK_INIT;
392392
static N: uint = 10;
393393
static M: uint = 1000;
394394

0 commit comments

Comments
 (0)