Add flag to modify the working directory assumed by the diagnostics #88754
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-reproducibility
Area: Reproducible / deterministic builds
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
D-diagnostic-infra
Diagnostics: Issues that affect all diagnostics, or relate to the diagnostic machinery itself.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
See rust-lang/cargo#9887
Currently rustc prints diagnostics relative to the current working directory of its invocation. However,
cargo
has a habit of switching the CWD to the workspace root before invokingrustc
, which means that the user's CWD ends up being something different.It would be nice to have a flag (
--diagnostic-cwd
?) that lets you specify a path relative to which all diagnostics should be printed.The text was updated successfully, but these errors were encountered: