Skip to content

Add flag to modify the working directory assumed by the diagnostics #88754

Closed
@Manishearth

Description

@Manishearth

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 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

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-reproducibilityArea: Reproducible / deterministic buildsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.D-diagnostic-infraDiagnostics: Issues that affect all diagnostics, or relate to the diagnostic machinery itself.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions