diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-02-17 23:48:32 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-02-18 11:27:51 +1100 |
| commit | 7a14f4994eb4527a38d02c61fa83822df02f7b5d (patch) | |
| tree | d9d3698e9f2897195403fdf196d05b633bd4f581 /src/libstd/thread.rs | |
| parent | adfcd93f0c3b624399934558f63d945b7b6b663a (diff) | |
| download | rust-7a14f4994eb4527a38d02c61fa83822df02f7b5d.tar.gz rust-7a14f4994eb4527a38d02c61fa83822df02f7b5d.zip | |
Update tests for the Send - 'static change.
Diffstat (limited to 'src/libstd/thread.rs')
| -rw-r--r-- | src/libstd/thread.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/thread.rs b/src/libstd/thread.rs index c662a1dafa1..d5dcdca5fbf 100644 --- a/src/libstd/thread.rs +++ b/src/libstd/thread.rs @@ -630,7 +630,7 @@ mod test { rx.recv().unwrap(); } - fn avoid_copying_the_body<F>(spawnfn: F) where F: FnOnce(Thunk) { + fn avoid_copying_the_body<F>(spawnfn: F) where F: FnOnce(Thunk<'static>) { let (tx, rx) = channel::<uint>(); let x = box 1; @@ -677,7 +677,7 @@ mod test { // (well, it would if the constant were 8000+ - I lowered it to be more // valgrind-friendly. try this at home, instead..!) static GENERATIONS: uint = 16; - fn child_no(x: uint) -> Thunk { + fn child_no(x: uint) -> Thunk<'static> { return Thunk::new(move|| { if x < GENERATIONS { Thread::spawn(move|| child_no(x+1).invoke(())); |
