Skip to content

Removed std::r#await macro causes compilation fail #1087

@Empty2k12

Description

@Empty2k12

Version

❯ cargo tree | rg tokio
    Updating crates.io index
├── tokio v0.1.19
│   ├── tokio-async-await v0.1.7
│   │   └── tokio-io v0.1.12
│   ├── tokio-codec v0.1.1
│   │   └── tokio-io v0.1.12 (*)
│   ├── tokio-current-thread v0.1.6
│   │   └── tokio-executor v0.1.7
│   ├── tokio-executor v0.1.7 (*)
│   ├── tokio-fs v0.1.6
│   │   ├── tokio-io v0.1.12 (*)
│   │   └── tokio-threadpool v0.1.14
│   │       └── tokio-executor v0.1.7 (*)
│   │   └── tokio-io v0.1.12 (*)
│   ├── tokio-io v0.1.12 (*)
│   ├── tokio-reactor v0.1.9
│   │   ├── tokio-executor v0.1.7 (*)
│   │   ├── tokio-io v0.1.12 (*)
│   │   └── tokio-sync v0.1.5
│   ├── tokio-sync v0.1.5 (*)
│   ├── tokio-tcp v0.1.3
│   │   ├── tokio-io v0.1.12 (*)
│   │   └── tokio-reactor v0.1.9 (*)
│   ├── tokio-threadpool v0.1.14 (*)
│   ├── tokio-timer v0.2.10
│   │   └── tokio-executor v0.1.7 (*)
│   ├── tokio-trace-core v0.1.0
│   ├── tokio-udp v0.1.3
│   │   ├── tokio-codec v0.1.1 (*)
│   │   ├── tokio-io v0.1.12 (*)
│   │   └── tokio-reactor v0.1.9 (*)
│   └── tokio-uds v0.2.5
│       ├── tokio-codec v0.1.1 (*)
│       ├── tokio-io v0.1.12 (*)
│       └── tokio-reactor v0.1.9 (*)
    ├── tokio v0.1.19 (*)
    └── tokio-async-await v0.1.7 (*)

Platform

Darwin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:49:07 PDT 2019; root:xnu-4903.261.4~4/RELEASE_X86_64 x86_64

Subcrates

tokio-futures

Description

Running with latest nightly, the compilation of tokio-async-await fails, as the std::r#await macro which is being rexported has been deleted in this commit: rust-lang/rust#60675.

I expected to see this happen:

   Compiling my-bin v0.1.0 (/Users/gero/dev/my-bin)
    Finished dev [unoptimized + debuginfo] target(s) in 4.29s
     Running `target/debug/my-bin`

Instead, this happened:

   Compiling tokio-async-await v0.1.7
error[E0432]: unresolved import `std::await`
  --> /Users/gero/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/tokio-async-await-0.1.7/src/lib.rs:35:9
   |
35 | pub use std::await as std_await;
   |         ^^^^^^^^^^^^^^^^^^^^^^^ no `await` in the root

-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions