about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-02 03:45:29 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-08-20 02:38:02 +0200
commit6a14411b7633ecaf70dc9ae0112678487a9b0d64 (patch)
treeec154cc8414b2b806eb4bf12d51fdfd5b3827ce3
parentb0d47829489d44512c01868d6985cf1e86de3673 (diff)
downloadrust-6a14411b7633ecaf70dc9ae0112678487a9b0d64.tar.gz
rust-6a14411b7633ecaf70dc9ae0112678487a9b0d64.zip
Remove async_await feature gate tests.
-rw-r--r--src/test/ui/feature-gates/feature-gate-async-await-2015-edition.rs9
-rw-r--r--src/test/ui/feature-gates/feature-gate-async-await-2015-edition.stderr31
-rw-r--r--src/test/ui/feature-gates/feature-gate-async-await.rs18
-rw-r--r--src/test/ui/feature-gates/feature-gate-async-await.stderr45
4 files changed, 0 insertions, 103 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-async-await-2015-edition.rs b/src/test/ui/feature-gates/feature-gate-async-await-2015-edition.rs
deleted file mode 100644
index 801aeb82aa2..00000000000
--- a/src/test/ui/feature-gates/feature-gate-async-await-2015-edition.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-// edition:2015
-
-async fn foo() {} //~ ERROR `async fn` is not permitted in the 2015 edition
-                  //~^ ERROR async fn is unstable
-
-fn main() {
-    let _ = async {}; //~ ERROR cannot find struct, variant or union type `async`
-    let _ = async || { true }; //~ ERROR cannot find value `async` in this scope
-}
diff --git a/src/test/ui/feature-gates/feature-gate-async-await-2015-edition.stderr b/src/test/ui/feature-gates/feature-gate-async-await-2015-edition.stderr
deleted file mode 100644
index 0157ed55344..00000000000
--- a/src/test/ui/feature-gates/feature-gate-async-await-2015-edition.stderr
+++ /dev/null
@@ -1,31 +0,0 @@
-error[E0670]: `async fn` is not permitted in the 2015 edition
-  --> $DIR/feature-gate-async-await-2015-edition.rs:3:1
-   |
-LL | async fn foo() {}
-   | ^^^^^
-
-error[E0422]: cannot find struct, variant or union type `async` in this scope
-  --> $DIR/feature-gate-async-await-2015-edition.rs:7:13
-   |
-LL |     let _ = async {};
-   |             ^^^^^ not found in this scope
-
-error[E0425]: cannot find value `async` in this scope
-  --> $DIR/feature-gate-async-await-2015-edition.rs:8:13
-   |
-LL |     let _ = async || { true };
-   |             ^^^^^ not found in this scope
-
-error[E0658]: async fn is unstable
-  --> $DIR/feature-gate-async-await-2015-edition.rs:3:1
-   |
-LL | async fn foo() {}
-   | ^^^^^^^^^^^^^^^^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/50547
-   = help: add `#![feature(async_await)]` to the crate attributes to enable
-
-error: aborting due to 4 previous errors
-
-Some errors have detailed explanations: E0422, E0425, E0658, E0670.
-For more information about an error, try `rustc --explain E0422`.
diff --git a/src/test/ui/feature-gates/feature-gate-async-await.rs b/src/test/ui/feature-gates/feature-gate-async-await.rs
deleted file mode 100644
index 78391c0e104..00000000000
--- a/src/test/ui/feature-gates/feature-gate-async-await.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// edition:2018
-
-struct S;
-
-impl S {
-    async fn foo() {} //~ ERROR async fn is unstable
-}
-
-trait T {
-    async fn foo(); //~ ERROR trait fns cannot be declared `async`
-    //~^ ERROR async fn is unstable
-}
-
-async fn foo() {} //~ ERROR async fn is unstable
-
-fn main() {
-    let _ = async {}; //~ ERROR async blocks are unstable
-}
diff --git a/src/test/ui/feature-gates/feature-gate-async-await.stderr b/src/test/ui/feature-gates/feature-gate-async-await.stderr
deleted file mode 100644
index 9f4a90157a4..00000000000
--- a/src/test/ui/feature-gates/feature-gate-async-await.stderr
+++ /dev/null
@@ -1,45 +0,0 @@
-error[E0706]: trait fns cannot be declared `async`
-  --> $DIR/feature-gate-async-await.rs:10:5
-   |
-LL |     async fn foo();
-   |     ^^^^^^^^^^^^^^^
-
-error[E0658]: async fn is unstable
-  --> $DIR/feature-gate-async-await.rs:6:5
-   |
-LL |     async fn foo() {}
-   |     ^^^^^^^^^^^^^^^^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/50547
-   = help: add `#![feature(async_await)]` to the crate attributes to enable
-
-error[E0658]: async fn is unstable
-  --> $DIR/feature-gate-async-await.rs:10:5
-   |
-LL |     async fn foo();
-   |     ^^^^^^^^^^^^^^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/50547
-   = help: add `#![feature(async_await)]` to the crate attributes to enable
-
-error[E0658]: async fn is unstable
-  --> $DIR/feature-gate-async-await.rs:14:1
-   |
-LL | async fn foo() {}
-   | ^^^^^^^^^^^^^^^^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/50547
-   = help: add `#![feature(async_await)]` to the crate attributes to enable
-
-error[E0658]: async blocks are unstable
-  --> $DIR/feature-gate-async-await.rs:17:13
-   |
-LL |     let _ = async {};
-   |             ^^^^^^^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/50547
-   = help: add `#![feature(async_await)]` to the crate attributes to enable
-
-error: aborting due to 5 previous errors
-
-For more information about this error, try `rustc --explain E0658`.