about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/autoderef-method-priority.rs1
-rw-r--r--src/test/run-pass/deriving-cmp-generic-struct-enum.rs14
-rw-r--r--src/test/run-pass/estr-shared.rs3
-rw-r--r--src/test/run-pass/extern-pass-TwoU16s.rs3
-rw-r--r--src/test/run-pass/extern-pass-TwoU8s.rs3
-rw-r--r--src/test/run-pass/issue-1516.rs5
-rw-r--r--src/test/run-pass/issue-3874.rs5
-rw-r--r--src/test/run-pass/issue-3895.rs1
-rw-r--r--src/test/run-pass/issue-3991.rs21
-rw-r--r--src/test/run-pass/issue-5280.rs2
-rw-r--r--src/test/run-pass/issue-5315.rs1
-rw-r--r--src/test/run-pass/issue-6128.rs2
-rw-r--r--src/test/run-pass/issue-6344-let.rs1
-rw-r--r--src/test/run-pass/issue-6898.rs10
-rw-r--r--src/test/run-pass/regions-borrow-evec-fixed.rs2
-rw-r--r--src/test/run-pass/tag-align-dyn-u64.rs3
-rw-r--r--src/test/run-pass/tag-align-dyn-variants.rs3
-rw-r--r--src/test/run-pass/tag-align-u64.rs3
-rw-r--r--src/test/run-pass/trait-cast.rs3
-rw-r--r--src/test/run-pass/tuple-struct-trivial.rs2
20 files changed, 43 insertions, 45 deletions
diff --git a/src/test/run-pass/autoderef-method-priority.rs b/src/test/run-pass/autoderef-method-priority.rs
index 0fe30059ef6..f9f78aa4882 100644
--- a/src/test/run-pass/autoderef-method-priority.rs
+++ b/src/test/run-pass/autoderef-method-priority.rs
@@ -1,4 +1,3 @@
-// xfail-test #5321
 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
diff --git a/src/test/run-pass/deriving-cmp-generic-struct-enum.rs b/src/test/run-pass/deriving-cmp-generic-struct-enum.rs
index 6f6e8d79d8b..fe92684e8e1 100644
--- a/src/test/run-pass/deriving-cmp-generic-struct-enum.rs
+++ b/src/test/run-pass/deriving-cmp-generic-struct-enum.rs
@@ -1,5 +1,3 @@
-// xfail-test #5530
-
 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
@@ -18,18 +16,18 @@ enum ES<T> {
 
 
 pub fn main() {
-    let es11 = ES1 {x: 1}, es12 = ES1 {x: 2}, es21 = ES2 {x: 1, y: 1}, es22 = ES2 {x: 1, y: 2};
+    let (es11, es12, es21, es22) = (ES1 {x: 1}, ES1 {x: 2}, ES2 {x: 1, y: 1}, ES2 {x: 1, y: 2});
 
     // in order for both Ord and TotalOrd
     let ess = [es11, es12, es21, es22];
 
-    for ess.eachi |i, es1| {
-        for ess.eachi |j, es2| {
+    for (i, es1) in ess.iter().enumerate() {
+        for (j, es2) in ess.iter().enumerate() {
             let ord = i.cmp(&j);
 
             let eq = i == j;
-            let lt = i < j, le = i <= j;
-            let gt = i > j, ge = i >= j;
+            let (lt, le) = (i < j, i <= j);
+            let (gt, ge) = (i > j, i >= j);
 
             // Eq
             assert_eq!(*es1 == *es2, eq);
@@ -49,4 +47,4 @@ pub fn main() {
             assert_eq!(es1.cmp(es2), ord);
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/test/run-pass/estr-shared.rs b/src/test/run-pass/estr-shared.rs
index 5668c18e95b..20698a379e1 100644
--- a/src/test/run-pass/estr-shared.rs
+++ b/src/test/run-pass/estr-shared.rs
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
 pub fn main() {
-    let x : @str = @"hello";
+    let _x : @str = @"hello";
 }
diff --git a/src/test/run-pass/extern-pass-TwoU16s.rs b/src/test/run-pass/extern-pass-TwoU16s.rs
index a899488f873..d64c5bb01af 100644
--- a/src/test/run-pass/extern-pass-TwoU16s.rs
+++ b/src/test/run-pass/extern-pass-TwoU16s.rs
@@ -11,8 +11,6 @@
 // Test a foreign function that accepts and returns a struct
 // by value.
 
-// xfail-test #5744
-
 #[deriving(Eq)]
 struct TwoU16s {
     one: u16, two: u16
@@ -22,6 +20,7 @@ extern {
     pub fn rust_dbg_extern_identity_TwoU16s(v: TwoU16s) -> TwoU16s;
 }
 
+#[fixed_stack_segment] #[inline(never)]
 pub fn main() {
     unsafe {
         let x = TwoU16s {one: 22, two: 23};
diff --git a/src/test/run-pass/extern-pass-TwoU8s.rs b/src/test/run-pass/extern-pass-TwoU8s.rs
index fa8ea8d1f2a..8e13c25d697 100644
--- a/src/test/run-pass/extern-pass-TwoU8s.rs
+++ b/src/test/run-pass/extern-pass-TwoU8s.rs
@@ -11,8 +11,6 @@
 // Test a foreign function that accepts and returns a struct
 // by value.
 
-// xfail-test #5744
-
 #[deriving(Eq)]
 struct TwoU8s {
     one: u8, two: u8
@@ -22,6 +20,7 @@ extern {
     pub fn rust_dbg_extern_identity_TwoU8s(v: TwoU8s) -> TwoU8s;
 }
 
+#[fixed_stack_segment] #[inline(never)]
 pub fn main() {
     unsafe {
         let x = TwoU8s {one: 22, two: 23};
diff --git a/src/test/run-pass/issue-1516.rs b/src/test/run-pass/issue-1516.rs
index fe3feeb3dbf..2767ac6d69f 100644
--- a/src/test/run-pass/issue-1516.rs
+++ b/src/test/run-pass/issue-1516.rs
@@ -8,5 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
-pub fn main() {  let early_error: @fn(str) -> !  = {|msg| fail!() }; }
+pub fn main() {
+    let early_error: @fn(&str) -> !  = |_msg| { fail!() };
+}
diff --git a/src/test/run-pass/issue-3874.rs b/src/test/run-pass/issue-3874.rs
index e293e40ac69..ea1242ae216 100644
--- a/src/test/run-pass/issue-3874.rs
+++ b/src/test/run-pass/issue-3874.rs
@@ -8,11 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test FIXME #3874
 enum PureCounter { PureCounter(uint) }
 
-fn each(self: PureCounter, blk: &fn(v: &uint)) {
-    let PureCounter(ref x) = self;
+fn each(thing: PureCounter, blk: &fn(v: &uint)) {
+    let PureCounter(ref x) = thing;
     blk(x);
 }
 
diff --git a/src/test/run-pass/issue-3895.rs b/src/test/run-pass/issue-3895.rs
index 388e09ddb3e..efe0cb8d491 100644
--- a/src/test/run-pass/issue-3895.rs
+++ b/src/test/run-pass/issue-3895.rs
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
 pub fn main() {
     enum State { BadChar, BadSyntax }
 
diff --git a/src/test/run-pass/issue-3991.rs b/src/test/run-pass/issue-3991.rs
new file mode 100644
index 00000000000..842605b5929
--- /dev/null
+++ b/src/test/run-pass/issue-3991.rs
@@ -0,0 +1,21 @@
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+struct HasNested {
+    nest: ~[~[int]],
+}
+
+impl HasNested {
+    fn method_push_local(&mut self) {
+        self.nest[0].push(0);
+    }
+}
+
+fn main() {}
diff --git a/src/test/run-pass/issue-5280.rs b/src/test/run-pass/issue-5280.rs
index 72bf0cee05d..77df670ffb1 100644
--- a/src/test/run-pass/issue-5280.rs
+++ b/src/test/run-pass/issue-5280.rs
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
-
 type FontTableTag = u32;
 
 trait FontTableTagConversions {
diff --git a/src/test/run-pass/issue-5315.rs b/src/test/run-pass/issue-5315.rs
index 326b3fb1246..dde226ad9d8 100644
--- a/src/test/run-pass/issue-5315.rs
+++ b/src/test/run-pass/issue-5315.rs
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
 struct A(bool);
 
 fn main() {
diff --git a/src/test/run-pass/issue-6128.rs b/src/test/run-pass/issue-6128.rs
index 552a4615bb7..54df0523dbb 100644
--- a/src/test/run-pass/issue-6128.rs
+++ b/src/test/run-pass/issue-6128.rs
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
-
 use std::hashmap::HashMap;
 
 trait Graph<Node, Edge> {
diff --git a/src/test/run-pass/issue-6344-let.rs b/src/test/run-pass/issue-6344-let.rs
index ef1349c2344..5cda0690029 100644
--- a/src/test/run-pass/issue-6344-let.rs
+++ b/src/test/run-pass/issue-6344-let.rs
@@ -1,4 +1,3 @@
-// xfail-test #3874
 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
diff --git a/src/test/run-pass/issue-6898.rs b/src/test/run-pass/issue-6898.rs
index 8e9502d6d49..48a02063c6d 100644
--- a/src/test/run-pass/issue-6898.rs
+++ b/src/test/run-pass/issue-6898.rs
@@ -1,5 +1,3 @@
-// xfail-test
-
 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
@@ -14,7 +12,7 @@ use std::unstable::intrinsics;
 
 /// Returns the size of a type
 pub fn size_of<T>() -> uint {
-    TypeInfo::size_of::<T>()
+    TypeInfo::size_of(None::<T>)
 }
 
 /// Returns the size of the type that `val` points to
@@ -23,19 +21,19 @@ pub fn size_of_val<T>(val: &T) -> uint {
 }
 
 pub trait TypeInfo {
-    fn size_of() -> uint;
+    fn size_of(_lame_type_hint: Option<Self>) -> uint;
     fn size_of_val(&self) -> uint;
 }
 
 impl<T> TypeInfo for T {
     /// The size of the type in bytes.
-    fn size_of() -> uint {
+    fn size_of(_lame_type_hint: Option<T>) -> uint {
         unsafe { intrinsics::size_of::<T>() }
     }
 
     /// Returns the size of the type of `self` in bytes.
     fn size_of_val(&self) -> uint {
-        TypeInfo::size_of::<T>()
+        TypeInfo::size_of(None::<T>)
     }
 }
 
diff --git a/src/test/run-pass/regions-borrow-evec-fixed.rs b/src/test/run-pass/regions-borrow-evec-fixed.rs
index 129a299bcd4..9022ff92c8f 100644
--- a/src/test/run-pass/regions-borrow-evec-fixed.rs
+++ b/src/test/run-pass/regions-borrow-evec-fixed.rs
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
-
 fn foo(x: &[int]) -> int {
     x[0]
 }
diff --git a/src/test/run-pass/tag-align-dyn-u64.rs b/src/test/run-pass/tag-align-dyn-u64.rs
index a09ee23f147..946c29373d5 100644
--- a/src/test/run-pass/tag-align-dyn-u64.rs
+++ b/src/test/run-pass/tag-align-dyn-u64.rs
@@ -8,7 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
+// xfail-test #7340 fails on 32-bit linux
+use std::ptr;
 
 enum a_tag<A> {
     a_tag(A)
diff --git a/src/test/run-pass/tag-align-dyn-variants.rs b/src/test/run-pass/tag-align-dyn-variants.rs
index fa3b0a4ea33..748aa037b07 100644
--- a/src/test/run-pass/tag-align-dyn-variants.rs
+++ b/src/test/run-pass/tag-align-dyn-variants.rs
@@ -8,8 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
-
+// xfail-test #7340 fails on 32-bit linux
 use std::ptr;
 
 enum a_tag<A,B> {
diff --git a/src/test/run-pass/tag-align-u64.rs b/src/test/run-pass/tag-align-u64.rs
index 28088aa571e..df9e85347c5 100644
--- a/src/test/run-pass/tag-align-u64.rs
+++ b/src/test/run-pass/tag-align-u64.rs
@@ -8,8 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
-
+// xfail-test #7340 fails on 32-bit linux
 use std::ptr;
 
 enum a_tag {
diff --git a/src/test/run-pass/trait-cast.rs b/src/test/run-pass/trait-cast.rs
index 637fc7a70f5..dbda29fc227 100644
--- a/src/test/run-pass/trait-cast.rs
+++ b/src/test/run-pass/trait-cast.rs
@@ -1,6 +1,3 @@
-// xfail-test FIXME #5882
-// Weird borrow check bug
-
 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
diff --git a/src/test/run-pass/tuple-struct-trivial.rs b/src/test/run-pass/tuple-struct-trivial.rs
index c6c32cf49c6..c22c812760c 100644
--- a/src/test/run-pass/tuple-struct-trivial.rs
+++ b/src/test/run-pass/tuple-struct-trivial.rs
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
-
 struct Foo(int, int, int);
 
 pub fn main() {