diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-11-15 18:11:08 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-11-15 18:41:17 -0800 |
| commit | f8bd95589fceb893e5244f8f94e010a8b30f6529 (patch) | |
| tree | ecef93d9caf52c43b19cbc4a0d73013089026570 | |
| parent | d4cc7db138a1e8f81d50c4b451f4a5c5c3f45f74 (diff) | |
| download | rust-f8bd95589fceb893e5244f8f94e010a8b30f6529.tar.gz rust-f8bd95589fceb893e5244f8f94e010a8b30f6529.zip | |
Add comments explaining why these tests are xfailed
| -rw-r--r-- | src/test/auxiliary/cci_class_5.rs | 17 | ||||
| -rw-r--r-- | src/test/compile-fail/omitted-arg-wrong-types.rs | 3 | ||||
| -rw-r--r-- | src/test/compile-fail/private-method-cross-crate.rs | 6 | ||||
| -rw-r--r-- | src/test/compile-fail/regions-out-of-scope-slice.rs | 5 |
4 files changed, 12 insertions, 19 deletions
diff --git a/src/test/auxiliary/cci_class_5.rs b/src/test/auxiliary/cci_class_5.rs index 94451ba4c4b..e11c75d5d99 100644 --- a/src/test/auxiliary/cci_class_5.rs +++ b/src/test/auxiliary/cci_class_5.rs @@ -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 diff --git a/src/test/compile-fail/omitted-arg-wrong-types.rs b/src/test/compile-fail/omitted-arg-wrong-types.rs index e6ad54f219d..7296bcfbb45 100644 --- a/src/test/compile-fail/omitted-arg-wrong-types.rs +++ b/src/test/compile-fail/omitted-arg-wrong-types.rs @@ -1,5 +1,4 @@ -// xfail-test - +// xfail-test - #2093 fn let_in<T>(x: T, f: fn(T)) {} fn main() { diff --git a/src/test/compile-fail/private-method-cross-crate.rs b/src/test/compile-fail/private-method-cross-crate.rs index 2d258e58b84..41fa8ca47bc 100644 --- a/src/test/compile-fail/private-method-cross-crate.rs +++ b/src/test/compile-fail/private-method-cross-crate.rs @@ -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(); } diff --git a/src/test/compile-fail/regions-out-of-scope-slice.rs b/src/test/compile-fail/regions-out-of-scope-slice.rs index c6936cf8392..299e27d7a37 100644 --- a/src/test/compile-fail/regions-out-of-scope-slice.rs +++ b/src/test/compile-fail/regions-out-of-scope-slice.rs @@ -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]; } } |
