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

Commit 90e3aae

Browse files
Remove incomplete features from RPITIT/AFIT tests
1 parent cee6db1 commit 90e3aae

39 files changed

+29
-74
lines changed

tests/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.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
use std::future::Future;
64
use std::pin::Pin;
75

tests/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0053]: method `foo` has an incompatible type for trait
2-
--> $DIR/async-example-desugared-boxed-in-trait.rs:13:5
2+
--> $DIR/async-example-desugared-boxed-in-trait.rs:11:5
33
|
44
LL | async fn foo(&self) -> i32 {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Pin<Box<dyn Future<Output = i32>>>`, found future
66
|
77
note: type in trait
8-
--> $DIR/async-example-desugared-boxed-in-trait.rs:9:22
8+
--> $DIR/async-example-desugared-boxed-in-trait.rs:7:22
99
|
1010
LL | fn foo(&self) -> Pin<Box<dyn Future<Output = i32> + '_>>;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/ui/async-await/in-trait/async-example-desugared-boxed.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
use std::future::Future;
64
use std::pin::Pin;
75

tests/ui/async-await/in-trait/async-example-desugared-boxed.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: method `foo` should be async because the method from the trait is async
2-
--> $DIR/async-example-desugared-boxed.rs:13:5
2+
--> $DIR/async-example-desugared-boxed.rs:11:5
33
|
44
LL | async fn foo(&self) -> i32;
55
| --------------------------- required because the trait method is async

tests/ui/async-await/in-trait/async-example-desugared-extra.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// edition: 2021
33

44
#![feature(lint_reasons)]
5-
#![allow(incomplete_features)]
65

76
use std::future::Future;
87
use std::pin::Pin;

tests/ui/async-await/in-trait/async-example-desugared-in-trait.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
trait MyTrait {

tests/ui/async-await/in-trait/async-example-desugared-manual.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
use std::future::Future;
64
use std::task::Poll;
75

tests/ui/async-await/in-trait/async-example-desugared-manual.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: method `foo` should be async because the method from the trait is async
2-
--> $DIR/async-example-desugared-manual.rs:21:5
2+
--> $DIR/async-example-desugared-manual.rs:19:5
33
|
44
LL | async fn foo(&self) -> i32;
55
| --------------------------- required because the trait method is async

tests/ui/async-await/in-trait/async-example-desugared.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
trait MyTrait {

tests/ui/async-await/in-trait/async-example.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 MyTrait {
75
#[allow(async_fn_in_trait)]
86
async fn foo(&self) -> i32;

0 commit comments

Comments
 (0)