Skip to content

Commit 228015a

Browse files
committed
Remove async_await gates from tests.
1 parent 6a14411 commit 228015a

File tree

118 files changed

+19
-224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+19
-224
lines changed

src/test/rustdoc/async-fn.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// edition:2018
22

3-
#![feature(async_await)]
4-
53
// @has async_fn/fn.foo.html '//pre[@class="rust fn"]' 'pub async fn foo() -> Option<Foo>'
64
pub async fn foo() -> Option<Foo> {
75
None

src/test/rustdoc/async-move-doctest.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
// compile-flags:--test
22
// edition:2018
33

4-
// prior to setting the default edition for the doctest pre-parser, this doctest would fail due to
5-
// a fatal parsing error
4+
// Prior to setting the default edition for the doctest pre-parser,
5+
// this doctest would fail due to a fatal parsing error.
66
// see https://github.com/rust-lang/rust/issues/59313
77

88
//! ```
9-
//! #![feature(async_await)]
10-
//!
119
//! fn foo() {
1210
//! drop(async move {});
1311
//! }

src/test/rustdoc/edition-flag.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// compile-flags:--test -Z unstable-options
22
// edition:2018
33

4-
#![feature(async_await)]
5-
64
/// ```rust
7-
/// #![feature(async_await)]
85
/// fn main() {
96
/// let _ = async { };
107
/// }

src/test/ui/async-await/argument-patterns.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#![allow(unused_variables)]
55
#![deny(unused_mut)]
6-
#![feature(async_await)]
76

87
type A = Vec<u32>;
98

src/test/ui/async-await/async-await.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// edition:2018
44
// aux-build:arc_wake.rs
55

6-
#![feature(async_await)]
7-
86
extern crate arc_wake;
97

108
use std::pin::Pin;

src/test/ui/async-await/async-block-control-flow-static-semantics.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// edition:2018
77
// ignore-tidy-linelength
88

9-
#![feature(async_await)]
10-
119
fn main() {}
1210

1311
use core::future::Future;

src/test/ui/async-await/async-closure-matches-expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// build-pass
22
// edition:2018
33

4-
#![feature(async_await, async_closure)]
4+
#![feature(async_closure)]
55

66
macro_rules! match_expr {
77
($x:expr) => {}

src/test/ui/async-await/async-closure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// edition:2018
44
// aux-build:arc_wake.rs
55

6-
#![feature(async_await, async_closure)]
6+
#![feature(async_closure)]
77

88
extern crate arc_wake;
99

src/test/ui/async-await/async-error-span.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// edition:2018
2-
#![feature(async_await)]
32

4-
// Regression test for issue #62382
3+
// Regression test for issue #62382.
54

65
use std::future::Future;
76

src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// check-pass
77
// edition:2018
88

9-
#![feature(async_await)]
10-
119
struct Foo<'a>(&'a u8);
1210

1311
impl Foo<'_> {

0 commit comments

Comments
 (0)