about summary refs log tree commit diff
path: root/src/test/parse-fail
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-06-12 13:36:41 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-06-12 14:16:16 -0400
commitbba934f19ab26d5afc4f0be923ea699010883906 (patch)
treefdf950fec3f35810dd04cf70355b2e93067d4507 /src/test/parse-fail
parenta2f2a647633505fa83bcd9644d296ad529ebac41 (diff)
downloadrust-bba934f19ab26d5afc4f0be923ea699010883906.tar.gz
rust-bba934f19ab26d5afc4f0be923ea699010883906.zip
ignore-test cleanup
Most of these are old, but some specific messages for specific tests:

* trait-contravariant-self.rs: failed due to a soundess hole:
  https://github.com/rust-lang/rust/commit/05e3248a7974f55b64f75a2483b37ff8c001a4ff

* process-detatch: https://github.com/rust-lang/rust/commit/15966c3c1f99810ac81053769651776a67181dae
  says "this test is being ignored until signals are implemented" That's
  not happening for a long time, and when it is, we'll write tests for
  it.

* deep-vector{,2}.rs: "too big for our poor macro infrastructure", and has
  been ignored over a year.

* borrowck-nested-calls.rs's FIXME #6268 was closed in favor of
  rust-lang/rfcs#811

* issue-15167.rs works properly now
* issue-9737.rs works properly now
* match-var-hygiene.rs works properly now

Addresses a chunk of #3965
Diffstat (limited to 'src/test/parse-fail')
-rw-r--r--src/test/parse-fail/issue-14182.rs29
-rw-r--r--src/test/parse-fail/regions-fn-bound.rs50
-rw-r--r--src/test/parse-fail/regions-infer-paramd-method.rs69
-rw-r--r--src/test/parse-fail/regions-trait-2.rs39
-rw-r--r--src/test/parse-fail/regions-trait-3.rs47
5 files changed, 0 insertions, 234 deletions
diff --git a/src/test/parse-fail/issue-14182.rs b/src/test/parse-fail/issue-14182.rs
deleted file mode 100644
index 176e17c7eb0..00000000000
--- a/src/test/parse-fail/issue-14182.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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.
-
-// compile-flags: -Z parse-only
-
-// ignore-test FIXME(japari) remove test
-
-struct Foo {
-    f: for <'b> |&'b isize|:
-      'b -> &'b isize //~ ERROR use of undeclared lifetime name `'b`
-}
-
-fn main() {
-    let mut x: Vec< for <'a> ||
-       :'a //~ ERROR use of undeclared lifetime name `'a`
-    > = Vec::new();
-    x.push(|| {});
-
-    let foo = Foo {
-        f: |x| x
-    };
-}
diff --git a/src/test/parse-fail/regions-fn-bound.rs b/src/test/parse-fail/regions-fn-bound.rs
deleted file mode 100644
index 8762c1326ce..00000000000
--- a/src/test/parse-fail/regions-fn-bound.rs
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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.
-
-// compile-flags: -Z parse-only
-
-// ignore-test
-// ignored because the first error does not show up.
-
-// 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.
-//
-// 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.
-
-// compile-flags: -Z parse-only
-
-fn of<T>() -> |T| { panic!(); }
-fn subtype<T>(x: |T|) { panic!(); }
-
-fn test_fn<'x, 'y, 'z, T>(_x: &'x T, _y: &'y T, _z: &'z T) {
-    // Here, x, y, and z are free.  Other letters
-    // are bound.  Note that the arrangement
-    // subtype::<T1>(of::<T2>()) will typecheck
-    // iff T1 <: T2.
-
-    // should be the default:
-    subtype::< ||:'static>(of::<||>());
-    subtype::<||>(of::< ||:'static>());
-
-    //
-    subtype::< <'x> ||>(of::<||>());    //~ ERROR mismatched types
-    subtype::< <'x> ||>(of::< <'y> ||>());  //~ ERROR mismatched types
-
-    subtype::< <'x> ||>(of::< ||:'static>()); //~ ERROR mismatched types
-    subtype::< ||:'static>(of::< <'x> ||>());
-
-}
-
-fn main() {}
diff --git a/src/test/parse-fail/regions-infer-paramd-method.rs b/src/test/parse-fail/regions-infer-paramd-method.rs
deleted file mode 100644
index b1aebf4a2d1..00000000000
--- a/src/test/parse-fail/regions-infer-paramd-method.rs
+++ /dev/null
@@ -1,69 +0,0 @@
-// 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-test
-// ignored due to problems with by value self.
-
-// 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.
-//
-// 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.
-
-// compile-flags: -Z parse-only
-
-// Here: foo is parameterized because it contains a method that
-// refers to self.
-
-trait foo<'a> {
-    fn self_int(self) -> &'a isize;
-
-    fn any_int(self) -> &isize;
-}
-
-struct with_foo<'a> {
-    f: @foo<'a>
-}
-
-trait set_foo_foo {
-    fn set_foo(&mut self, f: @foo);
-}
-
-impl<'a> set_foo_foo for with_foo<'a> {
-    fn set_foo(&mut self, f: @foo) {
-        self.f = f; //~ ERROR mismatched types: expected `@foo/&self`, found `@foo/&`
-    }
-}
-
-// Bar is not region parameterized.
-
-trait bar {
-    fn any_int(&self) -> &isize;
-}
-
-struct with_bar {
-    f: bar
-}
-
-trait set_foo_bar {
-    fn set_foo(&mut self, f: bar);
-}
-
-impl set_foo_bar for with_bar {
-    fn set_foo(&mut self, f: bar) {
-        self.f = f;
-    }
-}
-
-fn main() {}
diff --git a/src/test/parse-fail/regions-trait-2.rs b/src/test/parse-fail/regions-trait-2.rs
deleted file mode 100644
index e2e3fcde83c..00000000000
--- a/src/test/parse-fail/regions-trait-2.rs
+++ /dev/null
@@ -1,39 +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.
-
-// compile-flags: -Z parse-only
-
-// ignore-test #5723
-
-// Test that you cannot escape a reference
-// into a trait.
-
-struct ctxt { v: usize }
-
-trait get_ctxt {
-    fn get_ctxt(&self) -> &'a ctxt;
-}
-
-struct has_ctxt<'a> { c: &'a ctxt }
-
-impl<'a> get_ctxt for has_ctxt<'a> {
-    fn get_ctxt(&self) -> &'a ctxt { self.c }
-}
-
-fn make_gc() -> @get_ctxt  {
-    let ctxt = ctxt { v: 22 };
-    let hc = has_ctxt { c: &ctxt };
-    return @hc as @get_ctxt;
-    //~^ ERROR source contains reference
-}
-
-fn main() {
-    make_gc().get_ctxt().v;
-}
diff --git a/src/test/parse-fail/regions-trait-3.rs b/src/test/parse-fail/regions-trait-3.rs
deleted file mode 100644
index 57b182f3c41..00000000000
--- a/src/test/parse-fail/regions-trait-3.rs
+++ /dev/null
@@ -1,47 +0,0 @@
-// 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-test
-// ignore'd due to problems with by-value self.
-
-// 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.
-
-// compile-flags: -Z parse-only
-
-trait get_ctxt<'a> {
-    fn get_ctxt(self) -> &'a usize;
-}
-
-fn make_gc1(gc: @get_ctxt<'a>) -> @get_ctxt<'b>  {
-    return gc; //~ ERROR mismatched types: expected `@get_ctxt/&b`, found `@get_ctxt/&a`
-}
-
-struct Foo {
-    r: &'a usize
-}
-
-impl get_ctxt for Foo<'a> {
-    fn get_ctxt(&self) -> &'a usize { self.r }
-}
-
-fn make_gc2<'a,'b>(foo: Foo<'a>) -> @get_ctxt<'b>  {
-    return @foo as @get_ctxt; //~ ERROR cannot infer
-}
-
-fn main() {
-}