auto merge of #10561 : pcwalton/rust/procify, r=alexcrichton
r? @alexcrichton
This commit is contained in:
commit
f4c22f75d4
65 changed files with 186 additions and 265 deletions
|
|
@ -54,7 +54,6 @@ impl<'self,T> Finally<T> for &'self fn() -> T {
|
|||
}
|
||||
}
|
||||
|
||||
finally_fn!(~fn() -> T)
|
||||
finally_fn!(extern "Rust" fn() -> T)
|
||||
|
||||
struct Finallyalizer<'self> {
|
||||
|
|
@ -109,12 +108,3 @@ fn test_compact() {
|
|||
but_always_run_this_function);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_owned() {
|
||||
fn spawn_with_finalizer(f: ~fn()) {
|
||||
do spawn { do f.finally { } }
|
||||
}
|
||||
let owned: ~fn() = || { };
|
||||
spawn_with_finalizer(owned);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ for it to terminate.
|
|||
The executing thread has no access to a task pointer and will be using
|
||||
a normal large stack.
|
||||
*/
|
||||
pub fn run_in_bare_thread(f: ~fn()) {
|
||||
pub fn run_in_bare_thread(f: proc()) {
|
||||
use cell::Cell;
|
||||
use rt::thread::Thread;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue