Opt-in flag for absolute paths in diagnostics #770
Labels
major-change
A proposal to make a major change to rustc
T-compiler
Add this label so rfcbot knows to poll the compiler team
Proposal
rustc should offer a way for users to request absolute paths in its diagnostic output as an opt-in (e.g. env var and/or command line flag, e.g.
--error-format=human,absolute-paths
)We know from experience (rust-lang/rust#47355, rust-lang/rust#47669, rust-lang/rust#128726, rust-lang/cargo#4998, rust-lang/cargo#9887) that some tools have difficulty dealing with the relative paths that rustc emits.
(This problem was somewhat exacerbated by rust-lang/cargo#4788; there were some changes make in the wake of that PR that addressed some of the problems above, but not all of them.)
There is general interest on the cargo side to have some way to opt-into generation of absolute paths, see e.g.: rust-lang/cargo#5450
My suggestion is that we get the basic functionality here put into rustc.
In speaking with @estebank , they mentioned that there's a wealth of options here.
Mentors or Reviewers
@estebank is my current "obvious" choice for mentorship/review.
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
The text was updated successfully, but these errors were encountered: