rustdoc reports diagnostics against very/../long/PATH.md
instead of normalizing to PATH.md
#130626
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The same repro as #130470 can be used here: https://github.com/fasterthanlime/readme-md-error-reporting
When running
cargo +stage1 t
, the output is:But I would argue it should be this:
I would caution against using canonicalize — which resolves symbolic links etc. and requires the path to exist on disk right now, and rather advise that y'all simply have a state machine working on a stack of path elements, going through:
The text was updated successfully, but these errors were encountered: