Skip to content

Commit

Permalink
Merge pull request #26 from sorz/remove-feature-gate
Browse files Browse the repository at this point in the history
Remove async_await feature gate
  • Loading branch information
dtolnay authored Aug 23, 2019
2 parents b1eb5c3 + 6195898 commit 536a870
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ in a trait produces the following error:
[rust-lang/rust#62149]: https://github.com/rust-lang/rust/issues/62149

```rust
#![feature(async_await)]

trait MyTrait {
async fn f() {}
}
Expand All @@ -41,8 +39,6 @@ The only thing to notice here is that we write an `#[async_trait]` macro on top
of traits and trait impls that contain async fn, and then they work.

```rust
#![feature(async_await)]

use async_trait::async_trait;

#[async_trait]
Expand Down
14 changes: 0 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
//! [rust-lang/rust#62149]: https://github.com/rust-lang/rust/issues/62149
//!
//! ```compile_fail
//! #![feature(async_await)]
//!
//! trait MyTrait {
//! async fn f() {}
//! }
Expand All @@ -36,8 +34,6 @@
//! top of traits and trait impls that contain async fn, and then they work.
//!
//! ```
//! #![feature(async_await)]
//!
//! use async_trait::async_trait;
//!
//! #[async_trait]
Expand Down Expand Up @@ -156,8 +152,6 @@
//! error message.
//!
//! ```compile_fail
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! type Elided<'a> = &'a usize;
Expand All @@ -179,8 +173,6 @@
//! The fix is to name the lifetime or use `'_`.
//!
//! ```
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! # type Elided<'a> = &'a usize;
Expand All @@ -206,8 +198,6 @@
//! by value, no associated types, etc.
//!
//! ```
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! #[async_trait]
Expand Down Expand Up @@ -262,8 +252,6 @@
//! the default implementations are applicable to them:
//!
//! ```
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! #[async_trait]
Expand All @@ -285,8 +273,6 @@
//! bounding them with `Self: Sized`:
//!
//! ```
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! #[async_trait]
Expand Down
2 changes: 0 additions & 2 deletions tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(async_await)]

use async_trait::async_trait;

#[async_trait]
Expand Down

0 comments on commit 536a870

Please sign in to comment.