diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-05-19 01:04:01 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-05-20 15:20:49 -0700 |
| commit | b0722c55f8205a43a0b8124ca179dada766c23ed (patch) | |
| tree | 5c2a4120822ff96b2f51b3b078cda03a9b2d85ee /src/libcore/sys.rs | |
| parent | fa18a861fbd934c295990e59b20c7a0498b88f08 (diff) | |
| download | rust-b0722c55f8205a43a0b8124ca179dada766c23ed.tar.gz rust-b0722c55f8205a43a0b8124ca179dada766c23ed.zip | |
core:rt:: Rename LocalServices to Task
Diffstat (limited to 'src/libcore/sys.rs')
| -rw-r--r-- | src/libcore/sys.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/sys.rs b/src/libcore/sys.rs index fc57cf40d1e..c21ce521314 100644 --- a/src/libcore/sys.rs +++ b/src/libcore/sys.rs @@ -204,7 +204,7 @@ impl FailWithCause for &'static str { pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! { use option::Option; use rt::{context, OldTaskContext, TaskContext}; - use rt::local_services::{unsafe_borrow_local_services, Unwinder}; + use rt::task::{unsafe_borrow_local_task, Unwinder}; let context = context(); match context { @@ -233,8 +233,8 @@ pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! { gc::cleanup_stack_for_failure(); - let local_services = unsafe_borrow_local_services(); - let unwinder: &mut Option<Unwinder> = &mut (*local_services).unwinder; + let task = unsafe_borrow_local_task(); + let unwinder: &mut Option<Unwinder> = &mut (*task).unwinder; match *unwinder { Some(ref mut unwinder) => unwinder.begin_unwind(), None => abort!("failure without unwinder. aborting process") |
