about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-11-15 18:11:08 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-11-15 18:41:17 -0800
commitf8bd95589fceb893e5244f8f94e010a8b30f6529 (patch)
treeecef93d9caf52c43b19cbc4a0d73013089026570
parentd4cc7db138a1e8f81d50c4b451f4a5c5c3f45f74 (diff)
downloadrust-f8bd95589fceb893e5244f8f94e010a8b30f6529.tar.gz
rust-f8bd95589fceb893e5244f8f94e010a8b30f6529.zip
Add comments explaining why these tests are xfailed
-rw-r--r--src/test/auxiliary/cci_class_5.rs17
-rw-r--r--src/test/compile-fail/omitted-arg-wrong-types.rs3
-rw-r--r--src/test/compile-fail/private-method-cross-crate.rs6
-rw-r--r--src/test/compile-fail/regions-out-of-scope-slice.rs5
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];
     }
 }