]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #7992 : huonw/rust/un-xfail, r=z0w0
authorbors <bors@rust-lang.org>
Wed, 24 Jul 2013 11:22:36 +0000 (04:22 -0700)
committerbors <bors@rust-lang.org>
Wed, 24 Jul 2013 11:22:36 +0000 (04:22 -0700)
...(they still don't work).

src/test/run-fail/bug-2470-bounds-check-overflow-2.rs
src/test/run-fail/bug-2470-bounds-check-overflow-3.rs
src/test/run-fail/too-much-recursion-unwinding.rs
src/test/run-fail/unwind-misc-1.rs

index 6eb8090af95fae6085e0e7b0d43d5d7292e33641..fa8cd005c04567b3fdb36171e1e1829489d29e56 100644 (file)
@@ -11,6 +11,8 @@
 // xfail-test
 // error-pattern:index out of bounds
 
+use std::uint;
+
 fn main() {
     let x = ~[1u,2u,3u];
 
index 8aec9782bf75dc5a999c41c5d6fe68f3a46373d1..2a5b45435765903e7badfee4404530917e37559f 100644 (file)
@@ -11,6 +11,8 @@
 // xfail-test
 // error-pattern:index out of bounds
 
+use std::u64;
+
 #[cfg(target_arch="x86")]
 fn main() {
     let x = ~[1u,2u,3u];
index 16d0fe346687c8627609356e6f2c08cb428cbb71..04dea449172da60bce8f612e062c3f2d88befe67 100644 (file)
@@ -15,7 +15,7 @@
 // during unwinding
 
 fn recurse() {
-    log(debug, "don't optimize me out");
+    info!("don't optimize me out");
     recurse();
 }
 
@@ -35,9 +35,7 @@ fn drop(&self) {
 }
 
 fn r(recursed: *mut bool) -> r {
-    unsafe {
-        r { recursed: recursed }
-    }
+    r { recursed: recursed }
 }
 
 fn main() {
index 75af701cedeae70620042153bd003c6c9a6b1660..bfcd2e8f8db828a64ac2564d288facf0ab9417b2 100644 (file)
@@ -8,17 +8,16 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test - issue #5512, fails but exits with 0
-
+// exec-env:RUST_NEWRT=1
 // error-pattern:fail
 
 fn main() {
     let count = @mut 0u;
     let mut map = std::hashmap::HashMap::new();
     let mut arr = ~[];
-    for uint::range(0u, 10u) |i| {
-        arr += ~[@~"key stuff"];
-        map.insert(arr.clone(), arr + ~[@~"value stuff"]);
+    for std::uint::range(0u, 10u) |i| {
+        arr.push(@~"key stuff");
+        map.insert(arr.clone(), arr + &[@~"value stuff"]);
         if arr.len() == 5 {
             fail!();
         }