Uh oh!
There was an error while loading. Please reload this page.
rustdoc: Preprocess intra-doc links consistently between crate loader and link resolver - #84066
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
MemberAuthor
Line 1072 also needs to be part of the function or it will panic on that too: |
This comment has been minimized.
This comment has been minimized.
jyn514force-pushed
the
consistent-link-strippping
branch
2 times, most recently
from
April 10, 2021 21:56
d6d3a46 to
27799b3Comparejyn514
commented
Apr 10, 2021
Uh oh!
There was an error while loading. Please reload this page.
jyn514
commented
Apr 10, 2021
MemberAuthor
Ok, this should be ready for review. |
klensy
reviewed
Apr 11, 2021
Uh oh!
There was an error while loading. Please reload this page.
klensy
reviewed
Apr 11, 2021
Uh oh!
There was an error while loading. Please reload this page.
jyn514force-pushed
the
consistent-link-strippping
branch
from
April 11, 2021 02:30
030b4b3 to
e3bd08aComparePreviously, rustdoc would panic on links to external crates if they were surrounded by backticks.
jyn514force-pushed
the
consistent-link-strippping
branch
from
April 11, 2021 02:32
e3bd08a to
47d1ed9CompareManishearth
approved these changes
Apr 11, 2021
Manishearth
commented
Apr 11, 2021
Member
@bors r+ |
bors
commented
Apr 11, 2021
Collaborator
📌 Commit 47d1ed9 has been approved by |
| crate enum PreprocessingError<'a> { | ||
| Anchor(AnchorFailure), | ||
| Disambiguator(Range<usize>, String), |
Member
There was a problem hiding this comment.
nit: worth having comments on each one explaining what the error is
Member
Dylan-DPC-zz pushed a commit
to Dylan-DPC-zz/rust
that referenced
this pull request
Apr 11, 2021
rustdoc: Move crate loader to collect_intra_doc_links::early This groups the similar code together, and also allows making most of collect_intra_doc_links private again. This builds on rust-lang#84066, but it wouldn't be too hard to base it off master if you want this to land first. Helps with rust-lang#83761. r? manishearth Fixesrust-lang#84046
camelid
commented
Apr 13, 2021
Member
Hmm, somehow this PR still got merged after being |
jyn514
commented
Apr 13, 2021
MemberAuthor
camelid
commented
Apr 13, 2021
Member
Ah, that makes sense. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, rustdoc would panic on links to external crates if they were
surrounded by backticks or the first path segment contained generics.
This is more extensive than the fix I suggested in #84046; it makes the preprocessing exactly the same rather than trying to duplicate only the necessary logic. This makes fixing the generics a lot easier as it turns out.
Fixes#84046.
r? @Manishearth