about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2014-02-22 20:37:52 +0100
committerAlex Crichton <alex@alexcrichton.com>2014-02-24 21:22:26 -0800
commit3ca01676bcbd092b04608cc0eee843b7031e46cb (patch)
tree7922638f3174af7f2c21ee3c2740ba6ea63f64f2
parent53b9484dafd92f442f8ed092e2648340c6cecf1f (diff)
downloadrust-3ca01676bcbd092b04608cc0eee843b7031e46cb.tar.gz
rust-3ca01676bcbd092b04608cc0eee843b7031e46cb.zip
Remove some obsolete ignored tests
* compile-fail/vec-add.rs is obsolete, there are no mutable
  vectors any more, #2711 is closed
* compile-fail/issue-1451.rs is obsolete, there are no more
  structural records, #1451 is closed
* compile-fail/issue-2074.rs is obsolete, an up to date test
  is in run-pass/nested-enum-same-names.rs, #2074 is closed
* compile-fail/omitted-arg-wrong-types.rs is obsolete, #2093
  is closed
-rw-r--r--src/test/compile-fail/issue-1451.rs33
-rw-r--r--src/test/compile-fail/issue-2074.rs23
-rw-r--r--src/test/compile-fail/omitted-arg-wrong-types.rs21
-rw-r--r--src/test/compile-fail/vec-add.rs73
4 files changed, 0 insertions, 150 deletions
diff --git a/src/test/compile-fail/issue-1451.rs b/src/test/compile-fail/issue-1451.rs
deleted file mode 100644
index ce27cc3be38..00000000000
--- a/src/test/compile-fail/issue-1451.rs
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2012-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-test
-
-struct T { f: extern "Rust" fn() };
-struct S { f: extern "Rust" fn() };
-
-fn fooS(t: S) {
-}
-
-fn fooT(t: T) {
-}
-
-fn bar() {
-}
-
-fn main() {
-    let x: extern "Rust" fn() = bar;
-    fooS(S {f: x});
-    fooS(S {f: bar});
-
-    let x: extern "Rust" fn() = bar;
-    fooT(T {f: x});
-    fooT(T {f: bar});
-}
diff --git a/src/test/compile-fail/issue-2074.rs b/src/test/compile-fail/issue-2074.rs
deleted file mode 100644
index 338d0cb439c..00000000000
--- a/src/test/compile-fail/issue-2074.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2012-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-test
-
-fn main() {
-    let one: || -> uint = || {
-        enum r { a };
-        a as uint
-    };
-    let two = || -> uint = || {
-        enum r { a };
-        a as uint
-    };
-    one(); two();
-}
diff --git a/src/test/compile-fail/omitted-arg-wrong-types.rs b/src/test/compile-fail/omitted-arg-wrong-types.rs
deleted file mode 100644
index 1f1a6849aca..00000000000
--- a/src/test/compile-fail/omitted-arg-wrong-types.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2012-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-test - #2093
-
-fn let_in<T>(x: T, f: |T|) {}
-
-fn main() {
-    let_in(3u, |i| { assert!(i == 3); });
-    //~^ ERROR expected `uint` but found `int`
-
-    let_in(3, |i| { assert!(i == 3u); });
-    //~^ ERROR expected `int` but found `uint`
-}
diff --git a/src/test/compile-fail/vec-add.rs b/src/test/compile-fail/vec-add.rs
deleted file mode 100644
index 3f1b82d1768..00000000000
--- a/src/test/compile-fail/vec-add.rs
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2012-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-test
-
-// FIXME (Issue #2711): + should allow immutable or mutable vectors on
-// the right hand side in all cases. We are getting compiler errors
-// about this now, so I'm ignoring the test for now. -eholk
-
-fn add(i: ~[int], mut m: ~[int]) {
-
-    // Check that:
-    //  (1) vectors of any two mutabilities can be added
-    //  (2) result has mutability of lhs
-
-   add(i + ~[3],
-       m + ~[3],
-       ~[3]);
-
-   add(i + ~[3],
-       m + ~[3],
-       ~[3]);
-
-   add(i + i,
-       m + i,
-       i);
-
-   add(i + m,
-       m + m,
-       m);
-
-   add(m + ~[3], //~ ERROR mismatched types
-       m + ~[3],
-       m + ~[3]);
-
-   add(i + ~[3],
-       i + ~[3], //~ ERROR mismatched types
-       i + ~[3]);
-
-   add(m + ~[3], //~ ERROR mismatched types
-       m + ~[3],
-       m + ~[3]);
-
-   add(i + ~[3],
-       i + ~[3], //~ ERROR mismatched types
-       i + ~[3]);
-
-   add(m + i, //~ ERROR mismatched types
-       m + i,
-       m + i);
-
-   add(i + i,
-       i + i, //~ ERROR mismatched types
-       i + i);
-
-   add(m + m, //~ ERROR mismatched types
-       m + m,
-       m + m);
-
-   add(i + m,
-       i + m, //~ ERROR mismatched types
-       i + m);
-}
-
-fn main() {
-}