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

-2
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

+2-4
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

-3
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

-1
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

-2
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

-2
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

+1-1
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

+1-1
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

+1-2
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

-2
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<'_> {

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

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// edition:2018
33
// compile-flags: --crate-type lib
44

5-
#![feature(async_await)]
6-
75
use std::{
86
cell::RefCell,
97
fmt::Debug,

src/test/ui/async-await/async-fn-path-elision.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// edition:2018
22

3-
#![feature(async_await)]
4-
#![allow(dead_code)]
5-
63
struct HasLifetime<'a>(&'a bool);
74

85
async fn error(lt: HasLifetime) { //~ ERROR implicit elided lifetime not allowed here

src/test/ui/async-await/async-fn-send-uses-nonsend.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// edition:2018
33
// compile-flags: --crate-type lib
44

5-
#![feature(async_await)]
6-
75
use std::{
86
cell::RefCell,
97
fmt::Debug,

src/test/ui/async-await/async-fn-size-moved-locals.rs

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
// edition:2018
1414

15-
#![feature(async_await)]
16-
1715
use std::future::Future;
1816
use std::pin::Pin;
1917
use std::task::{Context, Poll};

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

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// aux-build:arc_wake.rs
33
// edition:2018
44

5-
#![feature(async_await)]
6-
75
extern crate arc_wake;
86

97
use std::pin::Pin;

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

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// build-pass (FIXME(62277): could be check-pass?)
22
// edition:2018
33

4-
#![feature(async_await)]
5-
64
macro_rules! match_expr {
75
($x:expr) => {}
86
}

src/test/ui/async-await/async-unsafe-fn-call-in-safe.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// edition:2018
22

3-
#![feature(async_await)]
4-
53
struct S;
64

75
impl S {

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

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// build-pass (FIXME(62277): could be check-pass?)
22
// edition:2018
33

4-
#![feature(async_await)]
5-
64
trait MyClosure {
75
type Args;
86
}

src/test/ui/async-await/await-keyword/2015-edition-error-various-positions.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
#![allow(non_camel_case_types)]
32
#![deny(keyword_idents)]
43

src/test/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// edition:2018
22

33
#![allow(non_camel_case_types)]
4-
#![feature(async_await)]
54

65
mod outer_mod {
76
pub mod await { //~ ERROR expected identifier, found reserved keyword `await`

src/test/ui/async-await/await-keyword/incorrect-syntax-suggestions.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// edition:2018
22

3-
#![feature(async_await)]
4-
53
async fn bar() -> Result<(), ()> {
64
Ok(())
75
}

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

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// check-pass
44
// edition:2018
55

6-
#![feature(async_await)]
7-
86
async fn make_boxed_object() -> Box<dyn Send> {
97
Box::new(()) as _
108
}

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

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// check-pass
22
// edition:2018
33

4-
#![feature(async_await)]
5-
64
// See issue 60414
75

86
trait Trait {

src/test/ui/async-await/conditional-and-guaranteed-initialization.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// edition:2018
33
// compile-flags: --crate-type lib
44

5-
#![feature(async_await)]
6-
75
async fn conditional_and_guaranteed_initialization(x: usize) -> usize {
86
let y;
97
if x > 5 {

src/test/ui/async-await/dont-print-desugared-async.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Test that we don't show variables with from async fn desugaring
22

33
// edition:2018
4-
#![feature(async_await)]
54

65
async fn async_fn(&ref mut s: &[i32]) {}
76
//~^ ERROR cannot borrow data in a `&` reference as mutable [E0596]

src/test/ui/async-await/dont-suggest-missing-await.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// This test ensures we don't make the suggestion in bodies that aren't `async`.
44

5-
#![feature(async_await)]
6-
75
fn take_u32(x: u32) {}
86

97
async fn make_u32() -> u32 {

src/test/ui/async-await/drop-order/drop-order-for-async-fn-parameters-by-ref-binding.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// run-pass
44

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

87
// Test that the drop order for parameters in a fn and async fn matches up. Also test that
98
// parameters (used or unused) are not dropped until the async fn completes execution.

src/test/ui/async-await/drop-order/drop-order-for-async-fn-parameters.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// run-pass
44

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

87
// Test that the drop order for parameters in a fn and async fn matches up. Also test that
98
// parameters (used or unused) are not dropped until the async fn completes execution.

src/test/ui/async-await/drop-order/drop-order-for-locals-when-cancelled.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// edition:2018
33
// run-pass
44

5-
#![allow(unused_variables)]
65
#![deny(dead_code)]
7-
#![feature(async_await)]
86

97
// Test that the drop order for locals in a fn and async fn matches up.
108
extern crate arc_wake;

src/test/ui/async-await/drop-order/drop-order-locals-are-hidden.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// edition:2018
22

3-
#![allow(unused_variables)]
4-
#![feature(async_await)]
5-
63
async fn foobar_async(x: u32, (a, _, _c): (u32, u32, u32), _: u32, _y: u32) {
74
assert_eq!(__arg1, (1, 2, 3)); //~ ERROR cannot find value `__arg1` in this scope [E0425]
85
assert_eq!(__arg2, 4); //~ ERROR cannot find value `__arg2` in this scope [E0425]

src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// edition:2018
33
// run-pass
44

5-
#![allow(unused_variables)]
6-
#![feature(async_await)]
7-
85
// Test that the drop order for parameters in a fn and async fn matches up. Also test that
96
// parameters (used or unused) are not dropped until the async fn is cancelled.
107
// This file is mostly copy-pasted from drop-order-for-async-fn-parameters.rs

src/test/ui/async-await/edition-deny-async-fns-2015.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// edition:2015
22

3-
#![feature(async_await)]
4-
53
async fn foo() {} //~ ERROR `async fn` is not permitted in the 2015 edition
64

75
fn baz() { async fn foo() {} } //~ ERROR `async fn` is not permitted in the 2015 edition

src/test/ui/async-await/generics-and-bounds.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// edition:2018
33
// compile-flags: --crate-type lib
44

5-
#![feature(async_await)]
6-
75
use std::future::Future;
86

97
pub async fn simple_generic<T>() {}

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

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
// run-pass
66

7-
#![feature(async_await)]
8-
#![allow(unused)]
9-
107
use std::future::Future;
118
use std::task::Poll;
129
use std::task::Context;

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

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// edition:2018
2-
#![feature(async_await)]
32

43
pub async fn f(x: Option<usize>) {
54
x.take();

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

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
// build-pass (FIXME(62277): could be check-pass?)
77
// edition:2018
88

9-
#![feature(async_await)]
10-
#![allow(unused)]
11-
129
async fn foo<F>(_: &(), _: F) {}
1310

1411
fn main() {

src/test/ui/async-await/issue-61949-self-return-type.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// ignore-tidy-linelength
22
// edition:2018
3-
#![feature(async_await)]
43

54
// This test checks that `Self` is prohibited as a return type. See #61949 for context.
65

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

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// build-pass
55
// edition:2018
66

7-
#![feature(async_await)]
8-
97
async fn noop() {}
108

119
async fn foo() {

src/test/ui/async-await/issues/issue-51719.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//
33
// Tests that the .await syntax can't be used to make a generator
44

5-
#![feature(async_await)]
6-
75
async fn foo() {}
86

97
fn make_generator() {

src/test/ui/async-await/issues/issue-51751.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// edition:2018
22

3-
#![feature(async_await)]
4-
53
async fn inc(limit: i64) -> i64 {
64
limit + 1
75
}

src/test/ui/async-await/issues/issue-53249.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// build-pass (FIXME(62277): could be check-pass?)
22
// edition:2018
33

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

66
use std::task::{self, Poll};
77
use std::future::Future;

src/test/ui/async-await/issues/issue-54752-async-block.rs

-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
// edition:2018
44
// pp-exact
55

6-
#![feature(async_await)]
7-
#![allow(unused_parens)]
8-
96
fn main() { let _a = (async { }); }

src/test/ui/async-await/issues/issue-54974.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// build-pass (FIXME(62277): could be check-pass?)
22
// edition:2018
33

4-
#![feature(async_await)]
5-
64
use std::sync::Arc;
75

86
trait SomeTrait: Send + Sync + 'static {

src/test/ui/async-await/issues/issue-55324.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
// build-pass (FIXME(62277): could be check-pass?)
22
// edition:2018
33

4-
#![feature(async_await)]
5-
64
use std::future::Future;
75

8-
#[allow(unused)]
96
async fn foo<F: Future<Output = i32>>(x: &i32, future: F) -> i32 {
107
let y = future.await;
118
*x + y

0 commit comments

Comments
 (0)