diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-12-17 16:04:04 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-12-17 16:22:21 -0800 |
| commit | d6d12d90ff5363f59f1a1bf67f999a5d7944abb1 (patch) | |
| tree | 76c5a95a71f0a864da9112217af2f121e6a9377a /src/libstd/priority_queue.rs | |
| parent | f1e87733bd4b669f2dcfe758a7ae2b1ddea60715 (diff) | |
| download | rust-d6d12d90ff5363f59f1a1bf67f999a5d7944abb1.tar.gz rust-d6d12d90ff5363f59f1a1bf67f999a5d7944abb1.zip | |
Register snapshots
Diffstat (limited to 'src/libstd/priority_queue.rs')
| -rw-r--r-- | src/libstd/priority_queue.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs index 2f24b47883f..642b27fa465 100644 --- a/src/libstd/priority_queue.rs +++ b/src/libstd/priority_queue.rs @@ -80,20 +80,10 @@ impl <T: Ord> PriorityQueue<T> { } /// Consume the PriorityQueue and return the underlying vector - #[cfg(stage0)] - pure fn to_vec(self) -> ~[T] { fail } - #[cfg(stage1)] - #[cfg(stage2)] - #[cfg(stage3)] pure fn to_vec(self) -> ~[T] { let PriorityQueue{data: v} = self; v } /// Consume the PriorityQueue and return a vector in sorted /// (ascending) order - #[cfg(stage0)] - pure fn to_sorted_vec(self) -> ~[T] { fail } - #[cfg(stage1)] - #[cfg(stage2)] - #[cfg(stage3)] pure fn to_sorted_vec(self) -> ~[T] { let mut q = self; let mut end = q.len(); |
