diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-20 15:12:30 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-20 15:20:37 -0700 |
| commit | b181ea415ee283248ecabaa76f0c4c407fec05c1 (patch) | |
| tree | debf8c92b42644f8308079662c4804d89f41ce2a /src/libcore/task.rs | |
| parent | 56828d49fd469614ffea46bb6ea1053876ba2bfe (diff) | |
| download | rust-b181ea415ee283248ecabaa76f0c4c407fec05c1.tar.gz rust-b181ea415ee283248ecabaa76f0c4c407fec05c1.zip | |
core: Rename unsafe::leak to unsafe::forget. Closes #2031
Diffstat (limited to 'src/libcore/task.rs')
| -rw-r--r-- | src/libcore/task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs index e20b4cf8dc2..b7b26c5c4e1 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -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 { |
