lint message paths are absolute in some cases #82276
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The crate seems to generate some code as part of its
build.rs
and that code is dumped somewhere into the target dir.Now when we issue lint warnings about that code (that is inside the target dir), the path to the file is an absolute (canonicalized?) path and not a relative path from the crate root, as usual:
Is that intentional?
Why is it not a relative path from the crate root like all the warnings (something like
target/debug/build/crc-a8ff9075a6d24ab1/out/crc64_constants.rs:509:5
)The text was updated successfully, but these errors were encountered: