Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f614eae

Browse files
Remove some unnecessary allow(incomplete_features)
1 parent 6554a56 commit f614eae

File tree

62 files changed

+261
-323
lines changed

Some content is hidden

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

62 files changed

+261
-323
lines changed

tests/ui/async-await/in-trait/early-bound-2.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ check-pass
22
//@ edition:2021
33

4-
#![allow(incomplete_features)]
5-
64
pub trait Foo {
75
#[allow(async_fn_in_trait)]
86
async fn foo(&mut self);

tests/ui/async-await/in-trait/fn-not-async-err.rs

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

3-
#![allow(incomplete_features)]
4-
53
trait MyTrait {
64
async fn foo(&self) -> i32;
75
}

tests/ui/async-await/in-trait/fn-not-async-err.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: method should be `async` or return a future, but it is synchronous
2-
--> $DIR/fn-not-async-err.rs:10:5
2+
--> $DIR/fn-not-async-err.rs:8:5
33
|
44
LL | fn foo(&self) -> i32 {
55
| ^^^^^^^^^^^^^^^^^^^^
66
|
77
note: this method is `async` so it expects a future to be returned
8-
--> $DIR/fn-not-async-err.rs:6:5
8+
--> $DIR/fn-not-async-err.rs:4:5
99
|
1010
LL | async fn foo(&self) -> i32;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/ui/async-await/in-trait/fn-not-async-err2.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ edition: 2021
22
//@ check-pass
33

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

86
trait MyTrait {

tests/ui/async-await/in-trait/generics-mismatch.rs

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

3-
#![allow(incomplete_features)]
4-
53
trait Foo {
64
async fn foo<T>();
75
}

tests/ui/async-await/in-trait/generics-mismatch.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0053]: method `foo` has an incompatible generic parameter for trait `Foo`
2-
--> $DIR/generics-mismatch.rs:10:18
2+
--> $DIR/generics-mismatch.rs:8:18
33
|
44
LL | trait Foo {
55
| ---

tests/ui/async-await/in-trait/implied-bounds.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ check-pass
22
//@ edition: 2021
33

4-
#![allow(incomplete_features)]
5-
64
trait TcpStack {
75
type Connection<'a>: Sized where Self: 'a;
86
fn connect<'a>(&'a self) -> Self::Connection<'a>;

tests/ui/async-await/in-trait/issue-102138.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ check-pass
22
//@ edition:2021
33

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

86
async fn yield_now() {}

tests/ui/async-await/in-trait/issue-102219.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//@ edition:2021
33
//@ check-pass
44

5-
#![allow(incomplete_features)]
6-
75
trait T {
86
#[allow(async_fn_in_trait)]
97
async fn foo();

tests/ui/async-await/in-trait/issue-102310.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ check-pass
22
//@ edition:2021
33

4-
#![allow(incomplete_features)]
5-
64
pub trait SpiDevice {
75
#[allow(async_fn_in_trait)]
86
async fn transaction<F, R>(&mut self);

0 commit comments

Comments
 (0)