Skip to content

Commit d1fcc01

Browse files
committed
remove async_await feature gate
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 0156dc8 commit d1fcc01

Some content is hidden

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

81 files changed

+0
-195
lines changed

benches/task_local.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await, test)]
2-
31
extern crate test;
42

53
use async_std::task;

examples/hello-world.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Spawns a task that says hello.
22
3-
#![feature(async_await)]
4-
53
use async_std::task;
64

75
async fn say_hi() {

examples/line-count.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Counts the number of lines in a file given as an argument.
22
3-
#![feature(async_await)]
4-
53
use std::env::args;
64

75
use async_std::fs::File;

examples/list-dir.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Lists files in a directory given as an argument.
22
3-
#![feature(async_await)]
4-
53
use std::env::args;
64

75
use async_std::fs;

examples/logging.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Prints the runtime's execution log on the standard output.
22
3-
#![feature(async_await)]
4-
53
use async_std::task;
64

75
fn main() {

examples/print-file.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Prints a file given as an argument to stdout.
22
3-
#![feature(async_await)]
4-
53
use std::env::args;
64

75
use async_std::fs::File;

examples/stdin-echo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Echoes lines read on stdin to stdout.
22
3-
#![feature(async_await)]
4-
53
use async_std::io;
64
use async_std::prelude::*;
75
use async_std::task;

examples/stdin-timeout.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Reads a line from stdin, or exits with an error if nothing is read in 5 seconds.
22
3-
#![feature(async_await)]
4-
53
use std::time::Duration;
64

75
use async_std::io;

examples/surf-web.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Sends an HTTP request to the Rust website.
22
3-
#![feature(async_await)]
4-
53
use async_std::task;
64

75
fn main() -> Result<(), surf::Exception> {

examples/task-local.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Creates a task-local value.
22
3-
#![feature(async_await)]
4-
53
use std::cell::Cell;
64

75
use async_std::prelude::*;

examples/task-name.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Spawns a named task that prints its name.
22
3-
#![feature(async_await)]
4-
53
use async_std::task;
64

75
async fn print_name() {

examples/tcp-client.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
//! $ cargo run --example tcp-client
1313
//! ```
1414
15-
#![feature(async_await)]
16-
1715
use async_std::io;
1816
use async_std::net::TcpStream;
1917
use async_std::prelude::*;

examples/tcp-echo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
//! $ nc localhost 8080
77
//! ```
88
9-
#![feature(async_await)]
10-
119
use async_std::io;
1210
use async_std::net::{TcpListener, TcpStream};
1311
use async_std::prelude::*;

examples/udp-client.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
//! $ cargo run --example udp-client
1313
//! ```
1414
15-
#![feature(async_await)]
16-
1715
use async_std::io;
1816
use async_std::net::UdpSocket;
1917
use async_std::task;

examples/udp-echo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
//! $ nc -u localhost 8080
77
//! ```
88
9-
#![feature(async_await)]
10-
119
use async_std::io;
1210
use async_std::net::UdpSocket;
1311
use async_std::task;

src/fs/canonicalize.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use crate::task::blocking;
2323
/// # Examples
2424
///
2525
/// ```no_run
26-
/// # #![feature(async_await)]
2726
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
2827
/// #
2928
/// use async_std::fs;

src/fs/copy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use crate::task::blocking;
2727
/// # Examples
2828
///
2929
/// ```no_run
30-
/// # #![feature(async_await)]
3130
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
3231
/// #
3332
/// use async_std::fs;

src/fs/create_dir.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use crate::task::blocking;
2121
/// # Examples
2222
///
2323
/// ```no_run
24-
/// # #![feature(async_await)]
2524
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
2625
/// #
2726
/// use async_std::fs;

src/fs/create_dir_all.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use crate::io;
2020
/// # Examples
2121
///
2222
/// ```no_run
23-
/// # #![feature(async_await)]
2423
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
2524
/// #
2625
/// use async_std::fs;

src/fs/dir_builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ impl DirBuilder {
7373
/// # Examples
7474
///
7575
/// ```no_run
76-
/// # #![feature(async_await)]
7776
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
7877
/// #
7978
/// use async_std::fs::DirBuilder;

src/fs/dir_entry.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ impl DirEntry {
7474
/// # Examples
7575
///
7676
/// ```no_run
77-
/// # #![feature(async_await)]
7877
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
7978
/// #
8079
/// use async_std::fs;
@@ -100,7 +99,6 @@ impl DirEntry {
10099
/// # Examples
101100
///
102101
/// ```no_run
103-
/// # #![feature(async_await)]
104102
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
105103
/// #
106104
/// use async_std::fs;
@@ -154,7 +152,6 @@ impl DirEntry {
154152
/// # Examples
155153
///
156154
/// ```no_run
157-
/// # #![feature(async_await)]
158155
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
159156
/// #
160157
/// use async_std::fs;
@@ -206,7 +203,6 @@ impl DirEntry {
206203
/// # Examples
207204
///
208205
/// ```no_run
209-
/// # #![feature(async_await)]
210206
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
211207
/// #
212208
/// use async_std::fs;

src/fs/file.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ use crate::task::{blocking, Context, Poll};
3333
/// Create a new file and write some bytes to it:
3434
///
3535
/// ```no_run
36-
/// # #![feature(async_await)]
3736
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
3837
/// #
3938
/// use async_std::fs::File;
@@ -48,7 +47,6 @@ use crate::task::{blocking, Context, Poll};
4847
/// Read the contents of a file into a `Vec<u8>`:
4948
///
5049
/// ```no_run
51-
/// # #![feature(async_await)]
5250
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
5351
/// #
5452
/// use async_std::fs::File;
@@ -124,7 +122,6 @@ impl File {
124122
/// # Examples
125123
///
126124
/// ```no_run
127-
/// # #![feature(async_await)]
128125
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
129126
/// #
130127
/// use async_std::fs::File;
@@ -171,7 +168,6 @@ impl File {
171168
/// # Examples
172169
///
173170
/// ```no_run
174-
/// # #![feature(async_await)]
175171
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
176172
/// #
177173
/// use async_std::fs::File;
@@ -218,7 +214,6 @@ impl File {
218214
/// # Examples
219215
///
220216
/// ```no_run
221-
/// # #![feature(async_await)]
222217
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
223218
/// #
224219
/// use async_std::fs::File;
@@ -274,7 +269,6 @@ impl File {
274269
/// # Examples
275270
///
276271
/// ```no_run
277-
/// # #![feature(async_await)]
278272
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
279273
/// #
280274
/// use async_std::fs::File;
@@ -334,7 +328,6 @@ impl File {
334328
/// # Examples
335329
///
336330
/// ```no_run
337-
/// # #![feature(async_await)]
338331
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
339332
/// #
340333
/// use async_std::fs::File;
@@ -381,7 +374,6 @@ impl File {
381374
/// # Examples
382375
///
383376
/// ```no_run
384-
/// # #![feature(async_await)]
385377
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
386378
/// #
387379
/// use async_std::fs::File;
@@ -433,7 +425,6 @@ impl File {
433425
/// # Examples
434426
///
435427
/// ```no_run
436-
/// # #![feature(async_await)]
437428
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
438429
/// #
439430
/// use async_std::fs::File;

src/fs/hard_link.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use crate::task::blocking;
2222
/// # Examples
2323
///
2424
/// ```no_run
25-
/// # #![feature(async_await)]
2625
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
2726
/// #
2827
/// use async_std::fs;

src/fs/metadata.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use crate::task::blocking;
2222
/// # Examples
2323
///
2424
/// ```no_run
25-
/// # #![feature(async_await)]
2625
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
2726
/// #
2827
/// use async_std::fs;

src/fs/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
//! Create a new file and write some bytes to it:
1010
//!
1111
//! ```no_run
12-
//! # #![feature(async_await)]
1312
//! # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
1413
//! #
1514
//! use async_std::fs::File;

src/fs/open_options.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ use crate::task::blocking;
3232
/// Opening a file for reading:
3333
///
3434
/// ```no_run
35-
/// # #![feature(async_await)]
3635
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
3736
/// #
3837
/// use async_std::fs::OpenOptions;
@@ -48,7 +47,6 @@ use crate::task::blocking;
4847
/// Opening a file for both reading and writing, creating it if it doesn't exist:
4948
///
5049
/// ```no_run
51-
/// # #![feature(async_await)]
5250
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
5351
/// #
5452
/// use async_std::fs::OpenOptions;
@@ -73,7 +71,6 @@ impl OpenOptions {
7371
/// # Examples
7472
///
7573
/// ```no_run
76-
/// # #![feature(async_await)]
7774
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
7875
/// #
7976
/// use async_std::fs::OpenOptions;
@@ -96,7 +93,6 @@ impl OpenOptions {
9693
/// # Examples
9794
///
9895
/// ```no_run
99-
/// # #![feature(async_await)]
10096
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
10197
/// #
10298
/// use async_std::fs::OpenOptions;
@@ -123,7 +119,6 @@ impl OpenOptions {
123119
/// # Examples
124120
///
125121
/// ```no_run
126-
/// # #![feature(async_await)]
127122
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
128123
/// #
129124
/// use async_std::fs::OpenOptions;
@@ -169,7 +164,6 @@ impl OpenOptions {
169164
/// # Examples
170165
///
171166
/// ```no_run
172-
/// # #![feature(async_await)]
173167
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
174168
/// #
175169
/// use async_std::fs::OpenOptions;
@@ -196,7 +190,6 @@ impl OpenOptions {
196190
/// # Examples
197191
///
198192
/// ```no_run
199-
/// # #![feature(async_await)]
200193
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
201194
/// #
202195
/// use async_std::fs::OpenOptions;
@@ -226,7 +219,6 @@ impl OpenOptions {
226219
/// # Examples
227220
///
228221
/// ```no_run
229-
/// # #![feature(async_await)]
230222
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
231223
/// #
232224
/// use async_std::fs::OpenOptions;
@@ -263,7 +255,6 @@ impl OpenOptions {
263255
/// # Examples
264256
///
265257
/// ```no_run
266-
/// # #![feature(async_await)]
267258
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
268259
/// #
269260
/// use async_std::fs::OpenOptions;
@@ -316,7 +307,6 @@ impl OpenOptions {
316307
/// # Examples
317308
///
318309
/// ```no_run
319-
/// # #![feature(async_await)]
320310
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
321311
/// #
322312
/// use async_std::fs::OpenOptions;

src/fs/read.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use crate::task::blocking;
2424
/// # Examples
2525
///
2626
/// ```no_run
27-
/// # #![feature(async_await)]
2827
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
2928
/// #
3029
/// use async_std::fs;

src/fs/read_dir.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ use crate::task::{blocking, Context, Poll};
3030
/// # Examples
3131
///
3232
/// ```no_run
33-
/// # #![feature(async_await)]
3433
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
3534
/// #
3635
/// use async_std::fs;

src/fs/read_link.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use crate::task::blocking;
2020
/// # Examples
2121
///
2222
/// ```no_run
23-
/// # #![feature(async_await)]
2423
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
2524
/// #
2625
/// use async_std::fs;

0 commit comments

Comments
 (0)