diff options
| author | bors <bors@rust-lang.org> | 2014-06-25 02:02:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-25 02:02:00 +0000 |
| commit | 91be86af0952aebb1f7c1811a6abcccd7bd1c26e (patch) | |
| tree | 45fd08bfce0007e8e32453b94fd3229d1a13fba3 /src/libsync/spsc_queue.rs | |
| parent | 05ca9f747d62c9385cc142daa3c24a32d32a3f16 (diff) | |
| parent | cdccecb24f5c467282b73413494343d3848b4e5a (diff) | |
| download | rust-91be86af0952aebb1f7c1811a6abcccd7bd1c26e.tar.gz rust-91be86af0952aebb1f7c1811a6abcccd7bd1c26e.zip | |
auto merge of #15163 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/libsync/spsc_queue.rs')
| -rw-r--r-- | src/libsync/spsc_queue.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsync/spsc_queue.rs b/src/libsync/spsc_queue.rs index 55d2f3062ba..a4da1fd2335 100644 --- a/src/libsync/spsc_queue.rs +++ b/src/libsync/spsc_queue.rs @@ -237,7 +237,7 @@ mod test { #[test] fn smoke() { let q = Queue::new(0); - q.push(1); + q.push(1i); q.push(2); assert_eq!(q.pop(), Some(1)); assert_eq!(q.pop(), Some(2)); @@ -259,7 +259,7 @@ mod test { #[test] fn smoke_bound() { let q = Queue::new(1); - q.push(1); + q.push(1i); q.push(2); assert_eq!(q.pop(), Some(1)); assert_eq!(q.pop(), Some(2)); @@ -281,7 +281,7 @@ mod test { let b = a.clone(); let (tx, rx) = channel(); native::task::spawn(proc() { - for _ in range(0, 100000) { + for _ in range(0u, 100000) { loop { match b.pop() { Some(1) => break, @@ -292,7 +292,7 @@ mod test { } tx.send(()); }); - for _ in range(0, 100000) { + for _ in range(0i, 100000) { a.push(1); } rx.recv(); |
