Skip to content

Commit 51ff984

Browse files
Stabilize async closures
1 parent f495cec commit 51ff984

10 files changed

+45
-51
lines changed

tests/ui/async_yields_async.fixed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_closure)]
21
#![warn(clippy::async_yields_async)]
32
#![allow(clippy::redundant_async_block)]
43

tests/ui/async_yields_async.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_closure)]
21
#![warn(clippy::async_yields_async)]
32
#![allow(clippy::redundant_async_block)]
43

tests/ui/async_yields_async.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: an async construct yields a type which is itself awaitable
2-
--> tests/ui/async_yields_async.rs:38:9
2+
--> tests/ui/async_yields_async.rs:37:9
33
|
44
LL | let _h = async {
55
| _____________________-
@@ -20,7 +20,7 @@ LL + }.await
2020
|
2121

2222
error: an async construct yields a type which is itself awaitable
23-
--> tests/ui/async_yields_async.rs:43:9
23+
--> tests/ui/async_yields_async.rs:42:9
2424
|
2525
LL | let _i = async {
2626
| ____________________-
@@ -33,7 +33,7 @@ LL | | };
3333
| |_____- outer async construct
3434

3535
error: an async construct yields a type which is itself awaitable
36-
--> tests/ui/async_yields_async.rs:49:9
36+
--> tests/ui/async_yields_async.rs:48:9
3737
|
3838
LL | let _j = async || {
3939
| ________________________-
@@ -52,7 +52,7 @@ LL + }.await
5252
|
5353

5454
error: an async construct yields a type which is itself awaitable
55-
--> tests/ui/async_yields_async.rs:54:9
55+
--> tests/ui/async_yields_async.rs:53:9
5656
|
5757
LL | let _k = async || {
5858
| _______________________-
@@ -65,7 +65,7 @@ LL | | };
6565
| |_____- outer async construct
6666

6767
error: an async construct yields a type which is itself awaitable
68-
--> tests/ui/async_yields_async.rs:56:23
68+
--> tests/ui/async_yields_async.rs:55:23
6969
|
7070
LL | let _l = async || CustomFutureType;
7171
| ^^^^^^^^^^^^^^^^
@@ -75,7 +75,7 @@ LL | let _l = async || CustomFutureType;
7575
| help: consider awaiting this value: `CustomFutureType.await`
7676

7777
error: an async construct yields a type which is itself awaitable
78-
--> tests/ui/async_yields_async.rs:62:9
78+
--> tests/ui/async_yields_async.rs:61:9
7979
|
8080
LL | let _m = async || {
8181
| _______________________-

tests/ui/author/blocks.rs

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

33
#![allow(redundant_semicolons, clippy::no_effect)]
44
#![feature(stmt_expr_attributes)]
5-
#![feature(async_closure)]
65

76
#[rustfmt::skip]
87
fn main() {

tests/ui/infinite_loops.rs

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

44
#![allow(clippy::never_loop)]
55
#![warn(clippy::infinite_loop)]
6-
#![feature(async_closure)]
76

87
extern crate proc_macros;
98
use proc_macros::{external, with_span};

tests/ui/infinite_loops.stderr

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: infinite loop detected
2-
--> tests/ui/infinite_loops.rs:14:5
2+
--> tests/ui/infinite_loops.rs:13:5
33
|
44
LL | / loop {
55
LL | |
@@ -15,7 +15,7 @@ LL | fn no_break() -> ! {
1515
| ++++
1616

1717
error: infinite loop detected
18-
--> tests/ui/infinite_loops.rs:21:5
18+
--> tests/ui/infinite_loops.rs:20:5
1919
|
2020
LL | / loop {
2121
LL | |
@@ -32,7 +32,7 @@ LL | fn all_inf() -> ! {
3232
| ++++
3333

3434
error: infinite loop detected
35-
--> tests/ui/infinite_loops.rs:23:9
35+
--> tests/ui/infinite_loops.rs:22:9
3636
|
3737
LL | / loop {
3838
LL | |
@@ -49,7 +49,7 @@ LL | fn all_inf() -> ! {
4949
| ++++
5050

5151
error: infinite loop detected
52-
--> tests/ui/infinite_loops.rs:25:13
52+
--> tests/ui/infinite_loops.rs:24:13
5353
|
5454
LL | / loop {
5555
LL | |
@@ -63,7 +63,7 @@ LL | fn all_inf() -> ! {
6363
| ++++
6464

6565
error: infinite loop detected
66-
--> tests/ui/infinite_loops.rs:39:5
66+
--> tests/ui/infinite_loops.rs:38:5
6767
|
6868
LL | / loop {
6969
LL | |
@@ -74,7 +74,7 @@ LL | | }
7474
= help: if this is not intended, try adding a `break` or `return` condition in the loop
7575

7676
error: infinite loop detected
77-
--> tests/ui/infinite_loops.rs:52:5
77+
--> tests/ui/infinite_loops.rs:51:5
7878
|
7979
LL | / loop {
8080
LL | | fn inner_fn() -> ! {
@@ -90,7 +90,7 @@ LL | fn no_break_never_ret_noise() -> ! {
9090
| ++++
9191

9292
error: infinite loop detected
93-
--> tests/ui/infinite_loops.rs:95:5
93+
--> tests/ui/infinite_loops.rs:94:5
9494
|
9595
LL | / loop {
9696
LL | |
@@ -107,7 +107,7 @@ LL | fn break_inner_but_not_outer_1(cond: bool) -> ! {
107107
| ++++
108108

109109
error: infinite loop detected
110-
--> tests/ui/infinite_loops.rs:106:5
110+
--> tests/ui/infinite_loops.rs:105:5
111111
|
112112
LL | / loop {
113113
LL | |
@@ -124,7 +124,7 @@ LL | fn break_inner_but_not_outer_2(cond: bool) -> ! {
124124
| ++++
125125

126126
error: infinite loop detected
127-
--> tests/ui/infinite_loops.rs:120:9
127+
--> tests/ui/infinite_loops.rs:119:9
128128
|
129129
LL | / loop {
130130
LL | |
@@ -138,7 +138,7 @@ LL | fn break_outer_but_not_inner() -> ! {
138138
| ++++
139139

140140
error: infinite loop detected
141-
--> tests/ui/infinite_loops.rs:143:9
141+
--> tests/ui/infinite_loops.rs:142:9
142142
|
143143
LL | / loop {
144144
LL | |
@@ -155,7 +155,7 @@ LL | fn break_wrong_loop(cond: bool) -> ! {
155155
| ++++
156156

157157
error: infinite loop detected
158-
--> tests/ui/infinite_loops.rs:183:5
158+
--> tests/ui/infinite_loops.rs:182:5
159159
|
160160
LL | / loop {
161161
LL | |
@@ -172,7 +172,7 @@ LL | fn match_like() -> ! {
172172
| ++++
173173

174174
error: infinite loop detected
175-
--> tests/ui/infinite_loops.rs:224:5
175+
--> tests/ui/infinite_loops.rs:223:5
176176
|
177177
LL | / loop {
178178
LL | |
@@ -186,7 +186,7 @@ LL | fn match_like() -> ! {
186186
| ++++
187187

188188
error: infinite loop detected
189-
--> tests/ui/infinite_loops.rs:229:5
189+
--> tests/ui/infinite_loops.rs:228:5
190190
|
191191
LL | / loop {
192192
LL | |
@@ -203,7 +203,7 @@ LL | fn match_like() -> ! {
203203
| ++++
204204

205205
error: infinite loop detected
206-
--> tests/ui/infinite_loops.rs:334:9
206+
--> tests/ui/infinite_loops.rs:333:9
207207
|
208208
LL | / loop {
209209
LL | |
@@ -217,7 +217,7 @@ LL | fn problematic_trait_method() -> ! {
217217
| ++++
218218

219219
error: infinite loop detected
220-
--> tests/ui/infinite_loops.rs:344:9
220+
--> tests/ui/infinite_loops.rs:343:9
221221
|
222222
LL | / loop {
223223
LL | |
@@ -231,7 +231,7 @@ LL | fn could_be_problematic() -> ! {
231231
| ++++
232232

233233
error: infinite loop detected
234-
--> tests/ui/infinite_loops.rs:353:9
234+
--> tests/ui/infinite_loops.rs:352:9
235235
|
236236
LL | / loop {
237237
LL | |
@@ -245,7 +245,7 @@ LL | let _loop_forever = || -> ! {
245245
| ++++
246246

247247
error: infinite loop detected
248-
--> tests/ui/infinite_loops.rs:367:8
248+
--> tests/ui/infinite_loops.rs:366:8
249249
|
250250
LL | Ok(loop {
251251
| ________^
@@ -256,7 +256,7 @@ LL | | })
256256
= help: if this is not intended, try adding a `break` or `return` condition in the loop
257257

258258
error: infinite loop detected
259-
--> tests/ui/infinite_loops.rs:409:5
259+
--> tests/ui/infinite_loops.rs:408:5
260260
|
261261
LL | / 'infinite: loop {
262262
LL | |
@@ -272,7 +272,7 @@ LL | fn continue_outer() -> ! {
272272
| ++++
273273

274274
error: infinite loop detected
275-
--> tests/ui/infinite_loops.rs:416:5
275+
--> tests/ui/infinite_loops.rs:415:5
276276
|
277277
LL | / loop {
278278
LL | |
@@ -289,7 +289,7 @@ LL | fn continue_outer() -> ! {
289289
| ++++
290290

291291
error: infinite loop detected
292-
--> tests/ui/infinite_loops.rs:418:9
292+
--> tests/ui/infinite_loops.rs:417:9
293293
|
294294
LL | / 'inner: loop {
295295
LL | | loop {
@@ -304,7 +304,7 @@ LL | fn continue_outer() -> ! {
304304
| ++++
305305

306306
error: infinite loop detected
307-
--> tests/ui/infinite_loops.rs:426:5
307+
--> tests/ui/infinite_loops.rs:425:5
308308
|
309309
LL | / loop {
310310
LL | |

tests/ui/redundant_closure_call_fixable.fixed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_closure)]
21
#![warn(clippy::redundant_closure_call)]
32
#![allow(clippy::redundant_async_block)]
43
#![allow(clippy::type_complexity)]

tests/ui/redundant_closure_call_fixable.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_closure)]
21
#![warn(clippy::redundant_closure_call)]
32
#![allow(clippy::redundant_async_block)]
43
#![allow(clippy::type_complexity)]

0 commit comments

Comments
 (0)