Skip to content

Commit 226b252

Browse files
JohnTitorStjepan Glavina
authored and
Stjepan Glavina
committed
Remove async_await feature gates (#4)
1 parent cac7050 commit 226b252

File tree

15 files changed

+1
-33
lines changed

15 files changed

+1
-33
lines changed

benches/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(async_await, test)]
1+
#![feature(test)]
22

33
extern crate test;
44

examples/panic-propagation.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! A single-threaded executor where join handles propagate panics from tasks.
22
3-
#![feature(async_await)]
4-
53
use std::future::Future;
64
use std::panic::{resume_unwind, AssertUnwindSafe};
75
use std::pin::Pin;

examples/panic-result.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! A single-threaded executor where join handles catch panics inside tasks.
22
3-
#![feature(async_await)]
4-
53
use std::future::Future;
64
use std::panic::AssertUnwindSafe;
75
use std::thread;

examples/spawn-on-thread.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! A function that runs a future to completion on a dedicated thread.
22
3-
#![feature(async_await)]
4-
53
use std::future::Future;
64
use std::sync::Arc;
75
use std::thread;

examples/spawn.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! A simple single-threaded executor.
22
3-
#![feature(async_await)]
4-
53
use std::future::Future;
64
use std::panic::catch_unwind;
75
use std::thread;

examples/task-id.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! An executor that assigns an ID to every spawned task.
22
3-
#![feature(async_await)]
4-
53
use std::cell::Cell;
64
use std::future::Future;
75
use std::panic::catch_unwind;

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
//! All executors have some kind of queue that holds runnable tasks:
1212
//!
1313
//! ```
14-
//! # #![feature(async_await)]
15-
//! #
1614
//! let (sender, receiver) = crossbeam::channel::unbounded();
1715
//! #
1816
//! # // A future that will get spawned.
@@ -28,8 +26,6 @@
2826
//! A task is constructed using the [`spawn`] function:
2927
//!
3028
//! ```
31-
//! # #![feature(async_await)]
32-
//! #
3329
//! # let (sender, receiver) = crossbeam::channel::unbounded();
3430
//! #
3531
//! // A future that will be spawned.
@@ -56,8 +52,6 @@
5652
//! runnable tasks out of the queue and running each one in order:
5753
//!
5854
//! ```no_run
59-
//! # #![feature(async_await)]
60-
//! #
6155
//! # let (sender, receiver) = crossbeam::channel::unbounded();
6256
//! #
6357
//! # // A future that will get spawned.

src/task.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ use crate::JoinHandle;
2222
/// # Examples
2323
///
2424
/// ```
25-
/// # #![feature(async_await)]
26-
/// #
2725
/// use crossbeam::channel;
2826
///
2927
/// // The future inside the task.

tests/basic.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use std::future::Future;
42
use std::pin::Pin;
53
use std::sync::atomic::{AtomicUsize, Ordering};

tests/join.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use std::cell::Cell;
42
use std::future::Future;
53
use std::pin::Pin;

tests/panic.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use std::future::Future;
42
use std::panic::catch_unwind;
53
use std::pin::Pin;

tests/ready.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use std::future::Future;
42
use std::pin::Pin;
53
use std::task::{Context, Poll};

tests/waker_panic.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use std::cell::Cell;
42
use std::future::Future;
53
use std::panic::catch_unwind;

tests/waker_pending.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use std::future::Future;
42
use std::pin::Pin;
53
use std::task::Waker;

tests/waker_ready.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use std::cell::Cell;
42
use std::future::Future;
53
use std::pin::Pin;

0 commit comments

Comments
 (0)