You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 8, 2021. It is now read-only.
Compiling proc-macro-hack v0.5.4
Compiling synstructure v0.10.1
Compiling tokio-async-await v0.1.4
Compiling protobuf-codegen v2.2.2
error[E0599]: no function or associated item named `pinned` found for type `std::boxed::Box<_>` in the current scope
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-async-await-0.1.4/src/compat/backward.rs:22:21
|
22 | Compat(Box::pinned(future))
| -----^^^^^^
| |
| function or associated item not found in `std::boxed::Box<_>
The code in line 22 of backwards.rs is part of
/// Convert an 0.3 `Future` to an 0.1 `Future`.
#[derive(Debug)]
pub struct Compat<T>(Pin<Box<T>>);
impl<T> Compat<T> {
/// Create a new `Compat` backed by `future`.
pub fn new(future: T) -> Compat<T> {
Compat(Box::pinned(future))
}
}
This is the downside of using a nightly toolchain. Hopefully, we can move off of that when async/await is stabilized in Rust (should be Q1). A change in the nightly compiler broke the tokio-async-await crate. See tokio-rs/tokio#814.
To fix this locally, add this to the bottom of your Cargo.toml.
The output from $ cargo build is
The code in line 22 of backwards.rs is part of
active toolchain
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.33.0-nightly (b2b7a063a 2019-01-01)
The text was updated successfully, but these errors were encountered: