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
Compiling tokio v1.16.1
error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
Error: --> /cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/tokio-1.16.1/src/runtime/metrics/worker.rs:2:25
|
2 | use std::sync::atomic::{AtomicU64, AtomicUsize};
| ^^^^^^^^^
| |
| no `AtomicU64` in `sync::atomic`
| help: a similar name exists in the module: `AtomicU8`
error[E0599]: no method named `fetch_add` found for struct `AtomicU64` in the current scope
Error: --> /cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/tokio-1.16.1/src/runtime/metrics/scheduler.rs:25:36
|
25 | self.remote_schedule_count.fetch_add(1, Relaxed);
| ^^^^^^^^^ help: there is an associated function with a similar name: `fetch_or`
|
::: /cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/tokio-1.16.1/src/loom/std/atomic_u64.rs:18:5
|
18 | pub(crate) struct AtomicU64 {
| --------------------------- method `fetch_add` not found for this
Description
Failed at https://github.com/tokio-rs/tokio/blob/tokio-1.16.1/tokio/src/runtime/metrics/worker.rs#L2
Detailed log
It compiled after I downgraded tokio to
1.15.0
. And I guess it's not fixed in #4453Related
#4452 #4454 #4453
The text was updated successfully, but these errors were encountered: