Closed
Description
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 invoking rustc
, 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.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Reproducible / deterministic buildsCategory: A feature request, i.e: not implemented / a PR.Diagnostics: Issues that affect all diagnostics, or relate to the diagnostic machinery itself.Relevant to the compiler team, which will review and decide on the PR/issue.