no `SyncLazy` in `lazy`
Closed this issue · 5 comments
ChuckNorrison commented
With cargo build --release i got this error
error[E0432]: unresolved import `std::lazy::SyncLazy`
--> src/providers/coindesk.rs:23:29
|
23 | use std::{convert::TryFrom, lazy::SyncLazy, time::Duration};
| ^^^^^^^^^^^^^^ no `SyncLazy` in `lazy`
not-jan commented
Are you using Rust nightly?
ChuckNorrison commented
i used this to install rust:
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
not-jan commented
Try doing cargo version
and double check that you're using a current nightly version please
ChuckNorrison commented
seems fine
cargo 1.64.0-nightly (8827baaa7 2022-07-14)
rustc 1.64.0-nightly (263edd43c 2022-07-17)
reinstalled the nightly and did a cargo clean, but the error still appears on build. Iam running Ubuntu 20.04.4 LTS
not-jan commented
I see now, looks like SyncLazy got renamed and moved. I'll have to look what its called now. rust-lang/rust#74465 seems to be the tracking issue. Easiest way for you would be to use 1.63 nightly for the time being :(