diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-04-22 14:27:30 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-04-29 14:30:53 -0700 |
| commit | b0522a497ccfcc7b124d77121d8f076af7f09b71 (patch) | |
| tree | fd6ce4ae9b4ff0ea4e538240bdef8ac72712dc93 /src/libstd/priority_queue.rs | |
| parent | 58791c2fd884ad1af626df478c2b509e894b29ee (diff) | |
| download | rust-b0522a497ccfcc7b124d77121d8f076af7f09b71.tar.gz rust-b0522a497ccfcc7b124d77121d8f076af7f09b71.zip | |
librustc: Remove `ptr::addr_of`.
Diffstat (limited to 'src/libstd/priority_queue.rs')
| -rw-r--r-- | src/libstd/priority_queue.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs index 60f25c2a270..6f408823410 100644 --- a/src/libstd/priority_queue.rs +++ b/src/libstd/priority_queue.rs @@ -151,7 +151,7 @@ pub impl <T:Ord> PriorityQueue<T> { priv fn siftup(&mut self, start: uint, mut pos: uint) { unsafe { - let new = *addr_of(&self.data[pos]); + let new = *ptr::to_unsafe_ptr(&self.data[pos]); while pos > start { let parent = (pos - 1) >> 1; @@ -171,7 +171,7 @@ pub impl <T:Ord> PriorityQueue<T> { priv fn siftdown_range(&mut self, mut pos: uint, end: uint) { unsafe { let start = pos; - let new = *addr_of(&self.data[pos]); + let new = *ptr::to_unsafe_ptr(&self.data[pos]); let mut child = 2 * pos + 1; while child < end { |
