Cargo runs rustc from the workspace root #8947
Labels
A-documenting-cargo-itself
Area: Cargo's documentation
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Bug? Inconvenience? Who knows, but it confused me greatly.
Problem
I ran
cargo build --lib -- -Z self-profile
fromsrc/librustdoc
in a clone of https://github.com/rust-lang/rust/. I expected the output file to be insrc/librustdoc/rustdoc-24097.mm_profdata
, since that's where it would be if I ran rustc directly. Instead they showed up in the workspace root:rustdoc-24097.mm_profdata
.Steps
(but I think this is true in any workspace)
Possible Solution(s)
Run rustc from the
src/librustdoc
folder instead, which will put the file in the expected place.Notes
Output of
cargo version
: cargo 1.50.0-nightly (bfca1cd 2020-11-24)I don't think this is a bug per-se, but it would be nice to document, maybe.
The text was updated successfully, but these errors were encountered: