diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-28 01:45:24 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-28 01:45:24 +1000 |
| commit | 366ca44cc8f79704f8781adb15e74d3c2a0e5572 (patch) | |
| tree | d6a616077f56aa66c7b98142db0584f104c9ea08 /src/libstd/task | |
| parent | d8087cae442ba3ca5070c7f3865e798f3786d28c (diff) | |
| download | rust-366ca44cc8f79704f8781adb15e74d3c2a0e5572.tar.gz rust-366ca44cc8f79704f8781adb15e74d3c2a0e5572.zip | |
std: silence some test warnings.
Diffstat (limited to 'src/libstd/task')
| -rw-r--r-- | src/libstd/task/mod.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/libstd/task/mod.rs b/src/libstd/task/mod.rs index 223afbce091..b558b9d53a3 100644 --- a/src/libstd/task/mod.rs +++ b/src/libstd/task/mod.rs @@ -934,17 +934,15 @@ fn test_spawn_sched_blocking() { let lock = testrt::rust_dbg_lock_create(); do spawn_sched(SingleThreaded) { - unsafe { - testrt::rust_dbg_lock_lock(lock); + testrt::rust_dbg_lock_lock(lock); - start_ch.send(()); + start_ch.send(()); - // Block the scheduler thread - testrt::rust_dbg_lock_wait(lock); - testrt::rust_dbg_lock_unlock(lock); + // Block the scheduler thread + testrt::rust_dbg_lock_wait(lock); + testrt::rust_dbg_lock_unlock(lock); - fin_ch.send(()); - } + fin_ch.send(()); }; // Wait until the other task has its lock |
