Skip to content

Commit

Permalink
Add comments explaining why these tests are xfailed
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Nov 16, 2012
1 parent d4cc7db commit f8bd955
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
17 changes: 6 additions & 11 deletions src/test/auxiliary/cci_class_5.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
mod kitties {
#[legacy_exports];

struct cat {
priv {
mut meows : uint,
}

how_hungry : int,

}
pub struct cat {
priv mut meows : uint,
how_hungry : int,
}

impl cat {
priv fn nap() { for uint::range(1u, 10000u) |_i|{}}
priv fn nap() { for uint::range(1, 10000u) |_i|{}}
}

fn cat(in_x : uint, in_y : int) -> cat {
pub fn cat(in_x : uint, in_y : int) -> cat {
cat {
meows: in_x,
how_hungry: in_y
Expand Down
3 changes: 1 addition & 2 deletions src/test/compile-fail/omitted-arg-wrong-types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// xfail-test

// xfail-test - #2093
fn let_in<T>(x: T, f: fn(T)) {}

fn main() {
Expand Down
6 changes: 3 additions & 3 deletions src/test/compile-fail/private-method-cross-crate.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// error-pattern:attempted access of field `nap` on type
// xfail-test Cross-crate impl method privacy doesn't work
// xfail-fast
// xfail-test
// aux-build:cci_class_5.rs
use cci_class_5;
extern mod cci_class_5;
use cci_class_5::kitties::*;

fn main() {
let nyan : cat = cat(52u, 99);
let nyan : cat = cat(52, 99);
nyan.nap();
}
5 changes: 2 additions & 3 deletions src/test/compile-fail/regions-out-of-scope-slice.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// xfail-test

// xfail-test blk region isn't supported in the front-end
fn foo(cond: bool) {
// Here we will infer a type that uses the
// region of the if stmt then block, but in the scope:
let mut x; //~ ERROR foo

if cond {
x = &[1,2,3]blk;
x = &blk/[1,2,3];
}
}

Expand Down

0 comments on commit f8bd955

Please sign in to comment.