]> git.lizzy.rs Git - rust.git/commitdiff
work around 15189 in test cases
authorJohn Clements <clements@racket-lang.org>
Thu, 26 Jun 2014 00:08:08 +0000 (17:08 -0700)
committerJohn Clements <clements@racket-lang.org>
Thu, 26 Jun 2014 00:08:47 +0000 (17:08 -0700)
src/test/run-pass/backtrace.rs
src/test/run-pass/deriving-cmp-generic-enum.rs
src/test/run-pass/deriving-cmp-generic-struct-enum.rs
src/test/run-pass/deriving-cmp-generic-struct.rs
src/test/run-pass/deriving-cmp-generic-tuple-struct.rs
src/test/run-pass/issue-15189.rs [new file with mode: 0644]
src/test/run-pass/linear-for-loop.rs
src/test/run-pass/task-comm-3.rs
src/test/run-pass/unfold-cross-crate.rs
src/test/run-pass/utf8.rs

index 616b247bbb77c28e6c65e5bc8b6fb501bf98ba34..3b74ec4add31982e05bebbded9678328404ce9f8 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
 // ignore-win32 FIXME #13259
 extern crate native;
 
index 692a62f4ed0b045152fc00b400a86b17d6fcae73..4a9324dd201a1f13726aa915d6ea32fa4ae33262 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
+
 #[deriving(PartialEq, Eq, PartialOrd, Ord)]
 enum E<T> {
     E0,
index 2add2b6711f316a4f369fed0ccc774db2b25ed8a..b21c95d7b50ce6d475585ca4cb507e5a56c5172c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
+
 #![feature(struct_variant)]
 
 #[deriving(PartialEq, Eq, PartialOrd, Ord)]
index 2576cce6503d41eb014ae33304677ce4a16c9b22..e2b8e1b6b82f545d857dfa847f8eb99db483a46b 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
+
 #[deriving(PartialEq, Eq, PartialOrd, Ord)]
 struct S<T> {
     x: T,
index 8ab529996e50c5a9fcb32824869897c4f23efe60..c07f124a08d1928cf646f3e50549e0a6aa78a8c2 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
+
 #[deriving(PartialEq, Eq, PartialOrd, Ord)]
 struct TS<T>(T,T);
 
diff --git a/src/test/run-pass/issue-15189.rs b/src/test/run-pass/issue-15189.rs
new file mode 100644 (file)
index 0000000..abf8b6d
--- /dev/null
@@ -0,0 +1,21 @@
+// Copyright 2014 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.
+
+// ignore-pretty
+
+#![feature(macro_rules)]
+
+macro_rules! third(($e:expr)=>({let x = 2; *$e.get(x)}))
+
+fn main() {
+    let x = vec!(10u,11u,12u,13u);
+    let t = third!(x);
+    assert_eq!(t,12u);
+}
index 1dc212ba8e951c9409385568c64d18c92a0cf377..640ed3883eb851e4a5dc192a716d8388228e59e0 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
+
 extern crate debug;
 
 pub fn main() {
index cd31d15db10925d03ae24046a89f7c364f4ba26f..1c14153a11018343bbfccb93b67baade65905ec7 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
+
 extern crate debug;
 
 use std::task;
index 1c3eafb203291177bebf235abebba52fa5e2f215..d3e70706867b41b5f5330e4adccce7288e435267 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
+
 use std::iter::Unfold;
 
 // Unfold had a bug with 'a that mean it didn't work
index d59ed3a4b6259ed3d360c275137a09c8b543d74b..6cf0d518628eac102a9e0fd49b8e30495d767ac6 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty FIXME #15189
+
 pub fn main() {
     let yen: char = '¥'; // 0xa5
     let c_cedilla: char = 'ç'; // 0xe7