Skip to content

Commit adb8ac4

Browse files
emberianthestinger
authored andcommitted
Fix/annotate a variety of xfails
1 parent e2e3923 commit adb8ac4

34 files changed

+98
-246
lines changed

src/test/run-pass/autoderef-method-priority.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// xfail-test
2-
// xfail'd because of a problem with by-value self.
3-
1+
// xfail-test #5321
42
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
53
// file at the top-level directory of this distribution and at
64
// http://rust-lang.org/COPYRIGHT.

src/test/run-pass/class-cast-to-trait-cross-crate.rs

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/test/run-pass/class-impl-parameterized-trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
11+
// xfail-test FIXME #7307
1212
// xfail-fast
1313

1414
extern mod extra;

src/test/run-pass/class-implements-multiple-traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
11+
// xfail-test FIXME #7305
1212

1313
extern mod extra;
1414
use extra::oldmap::*;

src/test/run-pass/coerce-reborrow-imm-vec-arg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// xfail-test
2-
31
fn sum(x: &[int]) -> int {
42
let mut sum = 0;
5-
for x.each |y| { sum += *y; }
3+
for x.iter().advance |y| { sum += *y; }
64
return sum;
75
}
86

@@ -14,8 +12,10 @@ fn sum_imm(y: &[int]) -> int {
1412
sum(y)
1513
}
1614

15+
/* FIXME #7304
1716
fn sum_const(y: &const [int]) -> int {
1817
sum(y)
1918
}
19+
*/
2020

2121
pub fn main() {}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
// xfail-test
2-
1+
/* FIXME #7302
32
fn foo(v: &const [uint]) -> ~[uint] {
4-
v.to_vec()
3+
v.to_owned()
54
}
5+
*/
66

77
fn bar(v: &mut [uint]) -> ~[uint] {
8-
v.to_vec()
8+
v.to_owned()
99
}
1010

1111
fn bip(v: &[uint]) -> ~[uint] {
12-
v.to_vec()
12+
v.to_owned()
1313
}
1414

1515
pub fn main() {
16-
let mut the_vec = ~[1, 2, 3, 100];
17-
assert_eq!(the_vec, foo(the_vec));
18-
assert_eq!(the_vec, bar(the_vec));
19-
assert_eq!(the_vec, bip(the_vec));
16+
let mut the_vec = ~[1u, 2, 3, 100];
17+
// assert_eq!(the_vec.clone(), foo(the_vec));
18+
assert_eq!(the_vec.clone(), bar(the_vec));
19+
assert_eq!(the_vec.clone(), bip(the_vec));
2020
}

src/test/run-pass/deriving-global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// xfail-test #7103 `extern mod` does not work on windows
1+
// xfail-fast #7103 `extern mod` does not work on windows
22

33
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
44
// file at the top-level directory of this distribution and at

src/test/run-pass/extern-mod-url.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Just a test that new-style extern mods parse
1212

13-
// xfail-test
13+
// xfail-test FIXME #6407
1414
extern mod test = "github.com/catamorphism/test-pkg";
1515

16-
fn main() {}
16+
fn main() {}

src/test/run-pass/fn-bare-size.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
12-
13-
extern mod extra;
11+
use std::sys;
1412

1513
pub fn main() {
1614
// Bare functions should just be a pointer
17-
assert!(sys::rustrt::size_of::<fn()>() ==
18-
sys::rustrt::size_of::<int>());
15+
assert_eq!(sys::size_of::<extern "Rust" fn()>(), sys::size_of::<int>());
1916
}

src/test/run-pass/foreign-mod.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
11+
// xfail-test FIXME #7308
1212
// -*- rust -*-
1313

1414
native mod libc = target_libc {

0 commit comments

Comments
 (0)