diff options
Diffstat (limited to 'src/libcore/private.rs')
| -rw-r--r-- | src/libcore/private.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/private.rs b/src/libcore/private.rs index c4298d572b6..e7e9de39ccd 100644 --- a/src/libcore/private.rs +++ b/src/libcore/private.rs @@ -642,7 +642,7 @@ pub mod tests { // Have to get rid of our reference before blocking. { let _x = move x; } // FIXME(#3161) util::ignore doesn't work here let res = option::swap_unwrap(&mut res); - future::get(&res); + res.recv(); } #[test] #[should_fail] #[ignore(cfg(windows))] @@ -657,7 +657,7 @@ pub mod tests { } assert unwrap_exclusive(move x) == ~~"hello"; let res = option::swap_unwrap(&mut res); - future::get(&res); + res.recv(); } #[test] #[ignore(cfg(windows))] |
