diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-01-12 15:38:44 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-01-13 09:31:40 -0800 |
| commit | 8685a1f7c49292c88eb5c4f76118b1d241303a0a (patch) | |
| tree | 0c36735b89da87da226aadfcef110e40d2c4d832 /src/libstd | |
| parent | 47a534c197444f3af04994350dfdf83bd97316bb (diff) | |
| download | rust-8685a1f7c49292c88eb5c4f76118b1d241303a0a.tar.gz rust-8685a1f7c49292c88eb5c4f76118b1d241303a0a.zip | |
distinguish "any closure" and "stack closure" (block)
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/test.rs b/src/libstd/test.rs index ef3c9a244bc..57c09fd57f3 100644 --- a/src/libstd/test.rs +++ b/src/libstd/test.rs @@ -49,7 +49,7 @@ type test_name = str; // to support isolation of tests into tasks. type test_fn<T> = T; -type default_test_fn = test_fn<sendfn()>; +type default_test_fn = test_fn<fn~()>; // The definition of a single test. A test runner will run a list of // these. @@ -336,7 +336,7 @@ fn run_test<T: copy>(test: test_desc<T>, // We need to run our tests in another task in order to trap test failures. // This function only works with functions that don't contain closures. fn default_test_to_task(&&f: default_test_fn) -> joinable { - ret task::spawn_joinable(sendfn[copy f]() { + ret task::spawn_joinable(fn~[copy f]() { configure_test_task(); f(); }); |
