Skip to content

Commit 9b7dd27

Browse files
committed
---
yaml --- r: 35580 b: refs/heads/master c: 90bebe3 h: refs/heads/master v: v3
1 parent 11fbca6 commit 9b7dd27

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: ac695aa21a93dc7b82d817a69c8c1918bb4d9b31
2+
refs/heads/master: 90bebe35224c6dc0238e3a35726bcd5fb0088337
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/src/libstd/priority_queue.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,19 @@ impl <T: Ord> PriorityQueue<T> {
7979
}
8080

8181
/// Consume the PriorityQueue and return the underlying vector
82+
#[cfg(stage0)]
83+
pure fn to_vec(self) -> ~[T] { fail }
84+
#[cfg(stage1)]
85+
#[cfg(stage2)]
86+
#[cfg(stage3)]
8287
pure fn to_vec(self) -> ~[T] { let PriorityQueue{data: v} = self; v }
8388

8489
/// Consume the PriorityQueue and return a vector in sorted (ascending) order
90+
#[cfg(stage0)]
91+
pure fn to_sorted_vec(self) -> ~[T] { fail }
92+
#[cfg(stage1)]
93+
#[cfg(stage2)]
94+
#[cfg(stage3)]
8595
pure fn to_sorted_vec(self) -> ~[T] {
8696
let mut q = self;
8797
let mut end = q.len();
@@ -244,6 +254,7 @@ mod tests {
244254

245255
#[test]
246256
#[should_fail]
257+
#[ignore(cfg(windows))]
247258
fn test_empty_pop() { let mut heap = from_vec::<int>(~[]); heap.pop(); }
248259

249260
#[test]
@@ -254,6 +265,7 @@ mod tests {
254265

255266
#[test]
256267
#[should_fail]
268+
#[ignore(cfg(windows))]
257269
fn test_empty_top() { let empty = from_vec::<int>(~[]); empty.top(); }
258270

259271
#[test]
@@ -264,6 +276,7 @@ mod tests {
264276

265277
#[test]
266278
#[should_fail]
279+
#[ignore(cfg(windows))]
267280
fn test_empty_replace() {
268281
let mut heap = from_vec::<int>(~[]);
269282
heap.replace(5);

0 commit comments

Comments
 (0)