diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-10-20 20:34:04 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-10-20 20:34:04 -0700 |
| commit | ebc61e39d78cbea14daf835597223f2f728e4acd (patch) | |
| tree | ce6cbd13b788d5eeec798b743ed5460f54e4a502 /src/test/stdtest | |
| parent | 6fb9d4f83b9ccbfc84ec04b86da27a58f8789db3 (diff) | |
| download | rust-ebc61e39d78cbea14daf835597223f2f728e4acd.tar.gz rust-ebc61e39d78cbea14daf835597223f2f728e4acd.zip | |
Remove temporary fn# syntax
Diffstat (limited to 'src/test/stdtest')
| -rw-r--r-- | src/test/stdtest/task.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/stdtest/task.rs b/src/test/stdtest/task.rs index 8ed8b56af3d..1349831cb87 100644 --- a/src/test/stdtest/task.rs +++ b/src/test/stdtest/task.rs @@ -15,25 +15,25 @@ fn test_unsupervise() { } #[cfg(target_os = "macos")] #[cfg(target_os = "linux")] fn test_unsupervise() { - fn# f(&&_i: ()) { task::unsupervise(); fail; } + fn f(&&_i: ()) { task::unsupervise(); fail; } task::spawn((), f); } #[test] fn test_lib_spawn() { - fn# foo(&&_i: ()) { log_err "Hello, World!"; } + fn foo(&&_i: ()) { log_err "Hello, World!"; } task::spawn((), foo); } #[test] fn test_lib_spawn2() { - fn# foo(&&x: int) { assert (x == 42); } + fn foo(&&x: int) { assert (x == 42); } task::spawn(42, foo); } #[test] fn test_join_chan() { - fn# winner(&&_i: ()) { } + fn winner(&&_i: ()) { } let p = comm::port(); task::spawn_notify((), winner, comm::chan(p)); @@ -56,7 +56,7 @@ fn test_join_chan_fail() { } #[cfg(target_os = "macos")] #[cfg(target_os = "linux")] fn test_join_chan_fail() { - fn# failer(&&_i: ()) { task::unsupervise(); fail } + fn failer(&&_i: ()) { task::unsupervise(); fail } let p = comm::port(); task::spawn_notify((), failer, comm::chan(p)); @@ -71,7 +71,7 @@ fn test_join_chan_fail() { #[test] fn test_join_convenient() { - fn# winner(&&_i: ()) { } + fn winner(&&_i: ()) { } let handle = task::spawn_joinable((), winner); assert (task::tr_success == task::join(handle)); } @@ -80,7 +80,7 @@ fn test_join_convenient() { #[ignore] fn spawn_polymorphic() { // FIXME #1038: Can't spawn palymorphic functions - /*fn# foo<~T>(x: T) { log_err x; } + /*fn foo<~T>(x: T) { log_err x; } task::spawn(true, foo); task::spawn(42, foo);*/ |
