diff options
| author | bors <bors@rust-lang.org> | 2013-06-02 16:55:33 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-02 16:55:33 -0700 |
| commit | c40baf68cb3306f1beaf1d5443bb2433043b7da7 (patch) | |
| tree | 964b03a12db214c3a63fbed78ca50ec8fb973819 /src/libstd/rt | |
| parent | dad945646fe7ec6592adfdf21b4bc464ac5c1fe7 (diff) | |
| parent | 454133127a78e14ae4922d96579f1d1a433fa54c (diff) | |
| download | rust-c40baf68cb3306f1beaf1d5443bb2433043b7da7.tar.gz rust-c40baf68cb3306f1beaf1d5443bb2433043b7da7.zip | |
auto merge of #6905 : thestinger/rust/ptr, r=catamorphism
The ptr module is intended to be for raw pointers. Closes #3111
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/task.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index eb7282bae05..620efed99ca 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -13,6 +13,7 @@ //! local storage, and logging. Even a 'freestanding' Rust would likely want //! to implement this. +use borrow; use cast::transmute; use libc::{c_void, uintptr_t}; use ptr; @@ -64,7 +65,7 @@ impl Task { // This is just an assertion that `run` was called unsafely // and this instance of Task is still accessible. do Local::borrow::<Task> |task| { - assert!(ptr::ref_eq(task, self)); + assert!(borrow::ref_eq(task, self)); } match self.unwinder { @@ -89,7 +90,7 @@ impl Task { // This is just an assertion that `destroy` was called unsafely // and this instance of Task is still accessible. do Local::borrow::<Task> |task| { - assert!(ptr::ref_eq(task, self)); + assert!(borrow::ref_eq(task, self)); } match self.storage { LocalStorage(ptr, Some(ref dtor)) => { |
