Skip to content

Commit f8bd955

Browse files
committed
Add comments explaining why these tests are xfailed
1 parent d4cc7db commit f8bd955

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

src/test/auxiliary/cci_class_5.rs

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
mod kitties {
2-
#[legacy_exports];
32

4-
struct cat {
5-
priv {
6-
mut meows : uint,
7-
}
8-
9-
how_hungry : int,
10-
11-
}
3+
pub struct cat {
4+
priv mut meows : uint,
5+
how_hungry : int,
6+
}
127

138
impl cat {
14-
priv fn nap() { for uint::range(1u, 10000u) |_i|{}}
9+
priv fn nap() { for uint::range(1, 10000u) |_i|{}}
1510
}
1611

17-
fn cat(in_x : uint, in_y : int) -> cat {
12+
pub fn cat(in_x : uint, in_y : int) -> cat {
1813
cat {
1914
meows: in_x,
2015
how_hungry: in_y

src/test/compile-fail/omitted-arg-wrong-types.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// xfail-test
2-
1+
// xfail-test - #2093
32
fn let_in<T>(x: T, f: fn(T)) {}
43

54
fn main() {
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// error-pattern:attempted access of field `nap` on type
2+
// xfail-test Cross-crate impl method privacy doesn't work
23
// xfail-fast
3-
// xfail-test
44
// aux-build:cci_class_5.rs
5-
use cci_class_5;
5+
extern mod cci_class_5;
66
use cci_class_5::kitties::*;
77

88
fn main() {
9-
let nyan : cat = cat(52u, 99);
9+
let nyan : cat = cat(52, 99);
1010
nyan.nap();
1111
}

src/test/compile-fail/regions-out-of-scope-slice.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// xfail-test
2-
1+
// xfail-test blk region isn't supported in the front-end
32
fn foo(cond: bool) {
43
// Here we will infer a type that uses the
54
// region of the if stmt then block, but in the scope:
65
let mut x; //~ ERROR foo
76

87
if cond {
9-
x = &[1,2,3]blk;
8+
x = &blk/[1,2,3];
109
}
1110
}
1211

0 commit comments

Comments
 (0)