diff options
| author | bors <bors@rust-lang.org> | 2013-03-22 18:00:52 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-22 18:00:52 -0700 |
| commit | d60a7259f9f7855aefac17596f66bc4c863dfe7a (patch) | |
| tree | eea8764eb7a7725ec41664be1d5647d7312d0ca2 /src/libstd/priority_queue.rs | |
| parent | 1e41bc74450328b317602f2e60ee9f41b0f90182 (diff) | |
| parent | 705c796ffa78417592b9e36d975cd432a4dc8417 (diff) | |
| download | rust-d60a7259f9f7855aefac17596f66bc4c863dfe7a.tar.gz rust-d60a7259f9f7855aefac17596f66bc4c863dfe7a.zip | |
auto merge of #5503 : thestinger/rust/trie, r=pcwalton
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 03d518f1f63..ff00d26882d 100644 --- a/src/libstd/priority_queue.rs +++ b/src/libstd/priority_queue.rs @@ -112,7 +112,7 @@ pub impl <T:Ord> PriorityQueue<T> { while end > 1 { end -= 1; q.data[end] <-> q.data[0]; - unsafe { q.siftdown_range(0, end) } // purity-checking workaround + q.siftdown_range(0, end) } q.to_vec() } @@ -126,7 +126,7 @@ pub impl <T:Ord> PriorityQueue<T> { let mut n = q.len() / 2; while n > 0 { n -= 1; - unsafe { q.siftdown(n) }; // purity-checking workaround + q.siftdown(n) } q } |
