-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-questionUser questions that are neither feature requests nor bug reportsUser questions that are neither feature requests nor bug reports
Description
Version
0.2.20 and latest git
Platform
macOS
Description
I'm using loom
as recommended in the loom
docs: by setting RUSTFLAGS="--cfg loom"
. This causes tokio
to not compile if the time
feature is activated. Can be reproduced by just creating an empty crate and adding tokio
as a dependency:
[dependencies]
tokio = { version = "0.2.20", features = ["time"] }
$ RUSTFLAGS="--cfg loom" cargo build
...
error[E0432]: unresolved import `crate::sync::AtomicWaker`
--> /Users/faern/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/time/driver/entry.rs:2:5
|
2 | use crate::sync::AtomicWaker;
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `AtomicWaker` in `sync`
I assume crates depending on tokio
should be able to use loom
so I guess this is not intentional.
DzenanJupic
Metadata
Metadata
Assignees
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-questionUser questions that are neither feature requests nor bug reportsUser questions that are neither feature requests nor bug reports