You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a.html:3: broken link fragment #somethingpointing tob.html``
Actual output:
a.html:3: broken link fragment #somethingpointing toa.html``
(the difference: "pointing to a.html" vs "pointing to b.html")
This problem manifests specifically when a given file has an anchor with the same name as an anchor in a different file, and the anchor in the other file is missing.
I ran into this in practice #85970 and it sent me in a wrong debugging direction for a little while.
The text was updated successfully, but these errors were encountered:
jsha
added
the
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
label
Jun 8, 2021
…ulacrum
Fix a bug in the linkchecker
There was a small typo in the linkchecker (in rust-lang#85652) that caused it to report a `#` fragment link error pointing to the wrong file (it was displaying the path to the source file, not the target of the link).
This also includes a few other changes:
- Fixes the tests due to some changes in the redirect handling in rust-lang#84703.
- Adds the tests to rustbuild to run whenever the linkchecker itself is run.
- Updates the tests to validate more of the output (so that a mistake like this would have been caught).
Closesrust-lang#86144
Steps to reproduce:
Expected output:
a.html:3: broken link fragment
#somethingpointing to
b.html``Actual output:
a.html:3: broken link fragment
#somethingpointing to
a.html``(the difference: "pointing to
a.html
" vs "pointing tob.html
")This problem manifests specifically when a given file has an anchor with the same name as an anchor in a different file, and the anchor in the other file is missing.
I ran into this in practice #85970 and it sent me in a wrong debugging direction for a little while.
The text was updated successfully, but these errors were encountered: