Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest Rust #435

Merged
merged 10 commits into from May 10, 2013

Change core::task::local_data to core::local_data.

  • Loading branch information
metajack committed May 10, 2013
commit 263a8251a9181a0f8969a1d219c17e2a0b9cdf7e
@@ -153,7 +153,7 @@ pub fn Content(layout_task: LayoutTask,
};

cx.set_cx_private(ptr::to_unsafe_ptr(&*content) as *());
unsafe { task::local_data::local_data_set(global_content_key, cast::transmute(content)); }
unsafe { local_data::local_data_set(global_content_key, cast::transmute(content)); }

content
}
@@ -162,7 +162,7 @@ fn global_content_key(_: @Content) {}

pub fn global_content() -> @Content {
unsafe {
return task::local_data::local_data_get(global_content_key).get();
return local_data::local_data_get(global_content_key).get();
}
}

@@ -173,7 +173,7 @@ pub fn task_from_context(cx: *JSContext) -> *mut Content {
#[unsafe_destructor]
impl Drop for Content {
fn finalize(&self) {
unsafe { task::local_data::local_data_pop(global_content_key) };
unsafe { local_data::local_data_pop(global_content_key) };
}
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.