about summary refs log tree commit diff
path: root/src/libstd/priority_queue.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-12-17 16:26:44 -0800
committerBrian Anderson <banderson@mozilla.com>2012-12-17 16:26:44 -0800
commit68998724c6f3ece600aa881d74c1ed1fa0410a7b (patch)
treeadd90449df756372b4c5acaf85634aedc603f135 /src/libstd/priority_queue.rs
parentd6d12d90ff5363f59f1a1bf67f999a5d7944abb1 (diff)
downloadrust-68998724c6f3ece600aa881d74c1ed1fa0410a7b.tar.gz
rust-68998724c6f3ece600aa881d74c1ed1fa0410a7b.zip
Revert "Register snapshots"
This reverts commit d6d12d90ff5363f59f1a1bf67f999a5d7944abb1.
Diffstat (limited to 'src/libstd/priority_queue.rs')
-rw-r--r--src/libstd/priority_queue.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs
index 642b27fa465..2f24b47883f 100644
--- a/src/libstd/priority_queue.rs
+++ b/src/libstd/priority_queue.rs
@@ -80,10 +80,20 @@ 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();