File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: ac695aa21a93dc7b82d817a69c8c1918bb4d9b31
8
+ refs/heads/try2: 90bebe35224c6dc0238e3a35726bcd5fb0088337
9
9
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10
10
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -79,9 +79,19 @@ impl <T: Ord> PriorityQueue<T> {
79
79
}
80
80
81
81
/// 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) ]
82
87
pure fn to_vec ( self ) -> ~[ T ] { let PriorityQueue { data : v} = self ; v }
83
88
84
89
/// 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) ]
85
95
pure fn to_sorted_vec ( self ) -> ~[ T ] {
86
96
let mut q = self ;
87
97
let mut end = q. len ( ) ;
@@ -244,6 +254,7 @@ mod tests {
244
254
245
255
#[ test]
246
256
#[ should_fail]
257
+ #[ ignore( cfg( windows) ) ]
247
258
fn test_empty_pop ( ) { let mut heap = from_vec :: < int > ( ~[ ] ) ; heap. pop ( ) ; }
248
259
249
260
#[ test]
@@ -254,6 +265,7 @@ mod tests {
254
265
255
266
#[ test]
256
267
#[ should_fail]
268
+ #[ ignore( cfg( windows) ) ]
257
269
fn test_empty_top ( ) { let empty = from_vec :: < int > ( ~[ ] ) ; empty. top ( ) ; }
258
270
259
271
#[ test]
@@ -264,6 +276,7 @@ mod tests {
264
276
265
277
#[ test]
266
278
#[ should_fail]
279
+ #[ ignore( cfg( windows) ) ]
267
280
fn test_empty_replace ( ) {
268
281
let mut heap = from_vec :: < int > ( ~[ ] ) ;
269
282
heap. replace ( 5 ) ;
You can’t perform that action at this time.
0 commit comments