I haven't figured out exactly what's going on here yet, but to repro:
mkdir /tmp/rustdoc-dirty && cd /tmp/rustdoc-dirty && cargo init
echo 'futures-preview = { version = "=0.3.0-alpha.16", features = ["io-compat"] }' >> Cargo.toml
cargo doc
cargo doc
(tested on rustc 1.36.0-nightly (a784a8022 2019-05-09))
The second cargo doc should do no work and immediately exit, however it instead proceeds to document tokio-io and everything after it. This only happens when the io-compat feature is enabled, but does not happen when depending directly on tokio-io.
I haven't figured out exactly what's going on here yet, but to repro:
(tested on
rustc 1.36.0-nightly (a784a8022 2019-05-09))The second
cargo docshould do no work and immediately exit, however it instead proceeds to documenttokio-ioand everything after it. This only happens when theio-compatfeature is enabled, but does not happen when depending directly ontokio-io.