From 35a935377483823ca1fbaede5a87406b494b0488 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 19 Sep 2012 13:59:44 -0700 Subject: [PATCH] xfail-fast the legacy_mode run-pass tests --- src/test/run-pass/argument-passing.rs | 1 + src/test/run-pass/auto_serialize.rs | 1 + src/test/run-pass/block-iter-1.rs | 1 + src/test/run-pass/block-iter-2.rs | 1 + src/test/run-pass/class-impl-very-parameterized-trait.rs | 1 + src/test/run-pass/class-implement-traits.rs | 1 + src/test/run-pass/closure-inference.rs | 1 + src/test/run-pass/expr-alt-generic-box2.rs | 1 + src/test/run-pass/expr-alt-generic-unique2.rs | 1 + src/test/run-pass/expr-alt-generic.rs | 1 + src/test/run-pass/expr-block-generic-box2.rs | 1 + src/test/run-pass/expr-block-generic-unique2.rs | 1 + src/test/run-pass/expr-block-generic.rs | 1 + src/test/run-pass/expr-if-generic-box2.rs | 1 + src/test/run-pass/expr-if-generic.rs | 1 + src/test/run-pass/fixed-point-bind-box.rs | 1 + src/test/run-pass/fixed-point-bind-unique.rs | 1 + src/test/run-pass/fn-bare-spawn.rs | 3 +-- src/test/run-pass/generic-temporary.rs | 1 + src/test/run-pass/intrinsic-frame-address.rs | 1 + src/test/run-pass/issue-2185.rs | 1 + src/test/run-pass/issue-2611.rs | 1 + src/test/run-pass/last-use-corner-cases.rs | 1 + src/test/run-pass/monad.rs | 1 + src/test/run-pass/operator-overloading.rs | 1 + src/test/run-pass/reflect-visit-data.rs | 1 + src/test/run-pass/regions-params.rs | 1 + src/test/run-pass/resource-generic.rs | 1 + src/test/run-pass/ret-break-cont-in-block.rs | 1 + src/test/run-pass/sendfn-generic-fn.rs | 1 + src/test/run-pass/sendfn-is-a-block.rs | 1 + src/test/run-pass/static-impl.rs | 1 + src/test/run-pass/static-method-test.rs | 1 + src/test/run-pass/task-comm-0.rs | 1 + src/test/run-pass/task-comm-10.rs | 1 + src/test/run-pass/task-comm-11.rs | 1 + src/test/run-pass/task-comm-13.rs | 1 + src/test/run-pass/task-comm-14.rs | 1 + src/test/run-pass/task-comm-15.rs | 1 + src/test/run-pass/task-comm-3.rs | 1 + src/test/run-pass/task-comm-7.rs | 1 + src/test/run-pass/task-comm-9.rs | 1 + src/test/run-pass/trait-generic.rs | 1 + src/test/run-pass/type-param-constraints.rs | 1 + 44 files changed, 44 insertions(+), 2 deletions(-) diff --git a/src/test/run-pass/argument-passing.rs b/src/test/run-pass/argument-passing.rs index baad882d2f4..2a839863455 100644 --- a/src/test/run-pass/argument-passing.rs +++ b/src/test/run-pass/argument-passing.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn f1(a: {mut x: int}, &b: int, -c: int) -> int { diff --git a/src/test/run-pass/auto_serialize.rs b/src/test/run-pass/auto_serialize.rs index aada71e13cc..8291c883d4f 100644 --- a/src/test/run-pass/auto_serialize.rs +++ b/src/test/run-pass/auto_serialize.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/block-iter-1.rs b/src/test/run-pass/block-iter-1.rs index dcf43c0e86a..692f9ea6ca4 100644 --- a/src/test/run-pass/block-iter-1.rs +++ b/src/test/run-pass/block-iter-1.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn iter_vec(v: ~[T], f: fn(T)) { for v.each |x| { f(x); } } diff --git a/src/test/run-pass/block-iter-2.rs b/src/test/run-pass/block-iter-2.rs index 2c8d693e0f2..6f5021ea7b1 100644 --- a/src/test/run-pass/block-iter-2.rs +++ b/src/test/run-pass/block-iter-2.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn iter_vec(v: ~[T], f: fn(T)) { for v.each |x| { f(x); } } diff --git a/src/test/run-pass/class-impl-very-parameterized-trait.rs b/src/test/run-pass/class-impl-very-parameterized-trait.rs index 97ed4487e70..325b09f77ed 100644 --- a/src/test/run-pass/class-impl-very-parameterized-trait.rs +++ b/src/test/run-pass/class-impl-very-parameterized-trait.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/class-implement-traits.rs b/src/test/run-pass/class-implement-traits.rs index c39ab16d744..396dbc5ae81 100644 --- a/src/test/run-pass/class-implement-traits.rs +++ b/src/test/run-pass/class-implement-traits.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; trait noisy { diff --git a/src/test/run-pass/closure-inference.rs b/src/test/run-pass/closure-inference.rs index d02f420b6c0..09850d2a0cd 100644 --- a/src/test/run-pass/closure-inference.rs +++ b/src/test/run-pass/closure-inference.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn foo(i: int) -> int { i + 1 } diff --git a/src/test/run-pass/expr-alt-generic-box2.rs b/src/test/run-pass/expr-alt-generic-box2.rs index 97806131b7b..eef7f339d24 100644 --- a/src/test/run-pass/expr-alt-generic-box2.rs +++ b/src/test/run-pass/expr-alt-generic-box2.rs @@ -1,3 +1,4 @@ +// xfail-fast // -*- rust -*- #[legacy_modes]; diff --git a/src/test/run-pass/expr-alt-generic-unique2.rs b/src/test/run-pass/expr-alt-generic-unique2.rs index 122b999c068..47ea3cecd6d 100644 --- a/src/test/run-pass/expr-alt-generic-unique2.rs +++ b/src/test/run-pass/expr-alt-generic-unique2.rs @@ -1,3 +1,4 @@ +// xfail-fast // -*- rust -*- #[legacy_modes]; diff --git a/src/test/run-pass/expr-alt-generic.rs b/src/test/run-pass/expr-alt-generic.rs index 931c65827f8..1a8b738c06d 100644 --- a/src/test/run-pass/expr-alt-generic.rs +++ b/src/test/run-pass/expr-alt-generic.rs @@ -1,3 +1,4 @@ +// xfail-fast // -*- rust -*- #[legacy_modes]; diff --git a/src/test/run-pass/expr-block-generic-box2.rs b/src/test/run-pass/expr-block-generic-box2.rs index 83a87892cbd..5003ba77105 100644 --- a/src/test/run-pass/expr-block-generic-box2.rs +++ b/src/test/run-pass/expr-block-generic-box2.rs @@ -1,4 +1,5 @@ // -*- rust -*- +// xfail-fast #[legacy_modes]; type compare = fn@(T, T) -> bool; diff --git a/src/test/run-pass/expr-block-generic-unique2.rs b/src/test/run-pass/expr-block-generic-unique2.rs index 40cba1bb294..62670ed0d7d 100644 --- a/src/test/run-pass/expr-block-generic-unique2.rs +++ b/src/test/run-pass/expr-block-generic-unique2.rs @@ -1,3 +1,4 @@ +// xfail-fast // -*- rust -*- #[legacy_modes]; diff --git a/src/test/run-pass/expr-block-generic.rs b/src/test/run-pass/expr-block-generic.rs index 8618bba4bed..ccee7f62b98 100644 --- a/src/test/run-pass/expr-block-generic.rs +++ b/src/test/run-pass/expr-block-generic.rs @@ -1,5 +1,6 @@ // -*- rust -*- +// xfail-fast #[legacy_modes]; // Tests for standalone blocks as expressions with dynamic type sizes diff --git a/src/test/run-pass/expr-if-generic-box2.rs b/src/test/run-pass/expr-if-generic-box2.rs index 9550b22fb2f..1d31b1733a8 100644 --- a/src/test/run-pass/expr-if-generic-box2.rs +++ b/src/test/run-pass/expr-if-generic-box2.rs @@ -1,3 +1,4 @@ +// xfail-fast // -*- rust -*- #[legacy_modes]; diff --git a/src/test/run-pass/expr-if-generic.rs b/src/test/run-pass/expr-if-generic.rs index 8ad7d480aad..f4b300afc16 100644 --- a/src/test/run-pass/expr-if-generic.rs +++ b/src/test/run-pass/expr-if-generic.rs @@ -1,3 +1,4 @@ +// xfail-fast // -*- rust -*- #[legacy_modes]; diff --git a/src/test/run-pass/fixed-point-bind-box.rs b/src/test/run-pass/fixed-point-bind-box.rs index 3ea976df27c..a6553a3ab1b 100644 --- a/src/test/run-pass/fixed-point-bind-box.rs +++ b/src/test/run-pass/fixed-point-bind-box.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn fix_help(f: extern fn(fn@(A) -> B, A) -> B, x: A) -> B { diff --git a/src/test/run-pass/fixed-point-bind-unique.rs b/src/test/run-pass/fixed-point-bind-unique.rs index b70a6c4039f..a20fb46abcd 100644 --- a/src/test/run-pass/fixed-point-bind-unique.rs +++ b/src/test/run-pass/fixed-point-bind-unique.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn fix_help(f: extern fn(fn@(A) -> B, A) -> B, x: A) -> B { diff --git a/src/test/run-pass/fn-bare-spawn.rs b/src/test/run-pass/fn-bare-spawn.rs index ae0a754fc6d..2655b0260fd 100644 --- a/src/test/run-pass/fn-bare-spawn.rs +++ b/src/test/run-pass/fn-bare-spawn.rs @@ -1,11 +1,10 @@ // This is what the signature to spawn should look like with bare functions -#[legacy_modes]; fn spawn(val: T, f: extern fn(T)) { f(val); } -fn f(&&i: int) { +fn f(+i: int) { assert i == 100; } diff --git a/src/test/run-pass/generic-temporary.rs b/src/test/run-pass/generic-temporary.rs index 37dc1e9fb57..58c39d7d9e9 100644 --- a/src/test/run-pass/generic-temporary.rs +++ b/src/test/run-pass/generic-temporary.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn mk() -> int { return 1; } diff --git a/src/test/run-pass/intrinsic-frame-address.rs b/src/test/run-pass/intrinsic-frame-address.rs index 7ed6dd2946b..25ee6424913 100644 --- a/src/test/run-pass/intrinsic-frame-address.rs +++ b/src/test/run-pass/intrinsic-frame-address.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; #[abi = "rust-intrinsic"] extern mod rusti { diff --git a/src/test/run-pass/issue-2185.rs b/src/test/run-pass/issue-2185.rs index 5491f7dfd7e..e89814763e6 100644 --- a/src/test/run-pass/issue-2185.rs +++ b/src/test/run-pass/issue-2185.rs @@ -1,3 +1,4 @@ +// xfail-fast // This test had to do with an outdated version of the iterable trait. // However, the condition it was testing seemed complex enough to // warrant still having a test, so I inlined the old definitions. diff --git a/src/test/run-pass/issue-2611.rs b/src/test/run-pass/issue-2611.rs index 5f2248a3870..cc2e89c76ea 100644 --- a/src/test/run-pass/issue-2611.rs +++ b/src/test/run-pass/issue-2611.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; use iter::BaseIter; diff --git a/src/test/run-pass/last-use-corner-cases.rs b/src/test/run-pass/last-use-corner-cases.rs index b6fb3547bc9..2d8e3aa7b8c 100644 --- a/src/test/run-pass/last-use-corner-cases.rs +++ b/src/test/run-pass/last-use-corner-cases.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn main() { diff --git a/src/test/run-pass/monad.rs b/src/test/run-pass/monad.rs index ae8797ce764..131ae43def2 100644 --- a/src/test/run-pass/monad.rs +++ b/src/test/run-pass/monad.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; trait vec_monad { diff --git a/src/test/run-pass/operator-overloading.rs b/src/test/run-pass/operator-overloading.rs index 6956d8b653d..9dbe80fd020 100644 --- a/src/test/run-pass/operator-overloading.rs +++ b/src/test/run-pass/operator-overloading.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; struct Point { diff --git a/src/test/run-pass/reflect-visit-data.rs b/src/test/run-pass/reflect-visit-data.rs index 8f48b44aa3b..7a6217a7c2e 100644 --- a/src/test/run-pass/reflect-visit-data.rs +++ b/src/test/run-pass/reflect-visit-data.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; use intrinsic::{TyDesc, get_tydesc, visit_tydesc, TyVisitor}; diff --git a/src/test/run-pass/regions-params.rs b/src/test/run-pass/regions-params.rs index 75e3afc07d8..6f837f89b54 100644 --- a/src/test/run-pass/regions-params.rs +++ b/src/test/run-pass/regions-params.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn region_identity(x: &r/uint) -> &r/uint { x } diff --git a/src/test/run-pass/resource-generic.rs b/src/test/run-pass/resource-generic.rs index a63ec8d154a..e653e94ac7a 100644 --- a/src/test/run-pass/resource-generic.rs +++ b/src/test/run-pass/resource-generic.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; struct finish { diff --git a/src/test/run-pass/ret-break-cont-in-block.rs b/src/test/run-pass/ret-break-cont-in-block.rs index 12ad2d78929..9013842ba8b 100644 --- a/src/test/run-pass/ret-break-cont-in-block.rs +++ b/src/test/run-pass/ret-break-cont-in-block.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; use cmp::Eq; diff --git a/src/test/run-pass/sendfn-generic-fn.rs b/src/test/run-pass/sendfn-generic-fn.rs index bc23e6734d2..79fe4a1f574 100644 --- a/src/test/run-pass/sendfn-generic-fn.rs +++ b/src/test/run-pass/sendfn-generic-fn.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/sendfn-is-a-block.rs b/src/test/run-pass/sendfn-is-a-block.rs index 5e16a3de748..1ff7f41188c 100644 --- a/src/test/run-pass/sendfn-is-a-block.rs +++ b/src/test/run-pass/sendfn-is-a-block.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn test(f: fn(uint) -> uint) -> uint { diff --git a/src/test/run-pass/static-impl.rs b/src/test/run-pass/static-impl.rs index ded9b1e6768..60965f801fb 100644 --- a/src/test/run-pass/static-impl.rs +++ b/src/test/run-pass/static-impl.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; use a::*; diff --git a/src/test/run-pass/static-method-test.rs b/src/test/run-pass/static-method-test.rs index 80a2246e6e3..ef9e08797d5 100644 --- a/src/test/run-pass/static-method-test.rs +++ b/src/test/run-pass/static-method-test.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; // A trait for objects that can be used to do an if-then-else diff --git a/src/test/run-pass/task-comm-0.rs b/src/test/run-pass/task-comm-0.rs index 4655792e216..d8586e7ef39 100644 --- a/src/test/run-pass/task-comm-0.rs +++ b/src/test/run-pass/task-comm-0.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/task-comm-10.rs b/src/test/run-pass/task-comm-10.rs index 57942e23939..0c69f414cc8 100644 --- a/src/test/run-pass/task-comm-10.rs +++ b/src/test/run-pass/task-comm-10.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/task-comm-11.rs b/src/test/run-pass/task-comm-11.rs index 826436ff2a9..c660ecd3a92 100644 --- a/src/test/run-pass/task-comm-11.rs +++ b/src/test/run-pass/task-comm-11.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/task-comm-13.rs b/src/test/run-pass/task-comm-13.rs index de13722e238..7302bcdaa94 100644 --- a/src/test/run-pass/task-comm-13.rs +++ b/src/test/run-pass/task-comm-13.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/task-comm-14.rs b/src/test/run-pass/task-comm-14.rs index efb4f49b2b1..14f8e3bfa2b 100644 --- a/src/test/run-pass/task-comm-14.rs +++ b/src/test/run-pass/task-comm-14.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn main() { diff --git a/src/test/run-pass/task-comm-15.rs b/src/test/run-pass/task-comm-15.rs index 22f40e784a7..98b095426ea 100644 --- a/src/test/run-pass/task-comm-15.rs +++ b/src/test/run-pass/task-comm-15.rs @@ -1,3 +1,4 @@ +// xfail-fast // xfail-win32 #[legacy_modes]; diff --git a/src/test/run-pass/task-comm-3.rs b/src/test/run-pass/task-comm-3.rs index f54b1d173f3..c4ed0302b35 100644 --- a/src/test/run-pass/task-comm-3.rs +++ b/src/test/run-pass/task-comm-3.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/task-comm-7.rs b/src/test/run-pass/task-comm-7.rs index 025c1f35451..d4cba9f71ab 100644 --- a/src/test/run-pass/task-comm-7.rs +++ b/src/test/run-pass/task-comm-7.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/task-comm-9.rs b/src/test/run-pass/task-comm-9.rs index bc553998e90..c159b7b77e5 100644 --- a/src/test/run-pass/task-comm-9.rs +++ b/src/test/run-pass/task-comm-9.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; extern mod std; diff --git a/src/test/run-pass/trait-generic.rs b/src/test/run-pass/trait-generic.rs index 6e684cea403..9b8e752d808 100644 --- a/src/test/run-pass/trait-generic.rs +++ b/src/test/run-pass/trait-generic.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; trait to_str { diff --git a/src/test/run-pass/type-param-constraints.rs b/src/test/run-pass/type-param-constraints.rs index dc52a181daf..24ffc218e0b 100644 --- a/src/test/run-pass/type-param-constraints.rs +++ b/src/test/run-pass/type-param-constraints.rs @@ -1,3 +1,4 @@ +// xfail-fast #[legacy_modes]; fn p_foo(pinned: T) { }