core: Rename unsafe::leak to unsafe::forget. Closes #2031

This commit is contained in:
Brian Anderson
2012-03-20 15:12:30 -07:00
parent 56828d49fd
commit b181ea415e
11 changed files with 20 additions and 20 deletions

View File

@@ -504,7 +504,7 @@ fn spawn_raw(opts: task_opts, +f: fn~()) unsafe {
}
rustrt::start_task(new_task, closure);
unsafe::leak(f);
unsafe::forget(f);
fn new_task_in_new_sched(opts: sched_opts) -> *rust_task {
if opts.native_stack_size != none {