Cargo does not pass --target
to rustdoc --test
for the host target
#10560
Labels
--target
to rustdoc --test
for the host target
#10560
Problem
cargo test --doc --target x86_64-unknown-linux-gnu
does not pass a--target
flag to rustdoc if the host target is x86_64-unknown-linux-gnu. This is inconsistent withcargo doc/check/build
. It caused trouble for bootstrap in rust-lang/rust#95993.Steps
cargo new --lib example
cd example
cargo test --doc --target x86_64-unknown-linux-gnu -v
Observe that no
--target
argument is passed to rustdoc.Possible Solution(s)
Pass
--target
to rustdoc.Notes
No response
Version
The text was updated successfully, but these errors were encountered: