Uh oh!
There was an error while loading. Please reload this page.
Remove intra doc link items if they are private/hidden and the matching option is not enabled - #130278
Remove intra doc link items if they are private/hidden and the matching option is not enabled#130278GuillaumeGomez wants to merge 5 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
e0cf6ca to
90a6e01Compare
This comment has been minimized.
This comment has been minimized.
90a6e01 to
e1dd08fCompareUh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
e1dd08f to
c1ec733Compare
This comment has been minimized.
This comment has been minimized.
c1ec733 to
c7e2628Compare
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
c7e2628 to
3044e5dCompare
This comment has been minimized.
This comment has been minimized.
GuillaumeGomez
commented
Oct 2, 2024
Some more investigations about how to add this check: I need to have |
…notriddle [rustdoc] Remove intra-doc links dead code While working on rust-lang#130278, I wondered what `resolve_display_text` was doing. I removed it and ran all rustdoc tests, and nothing failed. Are some intra-doc links tests missing or is it really dead code? Couldn't figure it out. r? `@notriddle`
…nup, r=notriddle Remove unneeded argument of `LinkCollector::verify_disambiguator` Still working on rust-lang#130278. ^^' r? `@notriddle`
3044e5d to
caf905eComparerustbot
commented
Oct 8, 2024
Some changes occurred in src/librustdoc/clean/types.rs cc @camelid |
caf905e to
e9ea3a9CompareGuillaumeGomez
commented
Oct 8, 2024
Implemented the approach I described above. Hopefully should fix all issues now. :) |
This comment has been minimized.
This comment has been minimized.
Rollup merge of rust-lang#131408 - GuillaumeGomez:more-intra-doc-cleanup, r=notriddle Remove unneeded argument of `LinkCollector::verify_disambiguator` Still working on rust-lang#130278. ^^' r? `@notriddle`
07da6fe to
353f3faCompareGuillaumeGomez
commented
Oct 9, 2024
Ignored the rustc lint. I also realized that in case there were still unresolved intra-doc links, I wasn't emitting an error. It's now fixed with two new ui tests to ensure it. :) |
This comment has been minimized.
This comment has been minimized.
353f3fa to
759c771Comparerust-log-analyzer
commented
Oct 10, 2024
The job Click to see the possible cause of the failure (guessed by this bot) |
[rustdoc] Remove intra-doc links dead code While working on rust-lang/rust#130278, I wondered what `resolve_display_text` was doing. I removed it and ran all rustdoc tests, and nothing failed. Are some intra-doc links tests missing or is it really dead code? Couldn't figure it out. r? `@notriddle`
GuillaumeGomez
commented
Oct 14, 2024
Closing in favor of #131691. |
…er-out-2, r=notriddle Delay ambiguous intra-doc link resolution after `Cache` has been populated Fixesrust-lang#130233. I was getting nowhere with rust-lang#130278. I took a wrong turn at some point and ended making way too many changes so instead I started again back from 0 and this time it worked out as expected. r? `@notriddle`
…er-out-2, r=notriddle Delay ambiguous intra-doc link resolution after `Cache` has been populated Fixesrust-lang#130233. I was getting nowhere with rust-lang#130278. I took a wrong turn at some point and ended making way too many changes so instead I started again back from 0 and this time it worked out as expected. r? ``@notriddle``
…er-out-2, r=notriddle Delay ambiguous intra-doc link resolution after `Cache` has been populated Fixesrust-lang#130233. I was getting nowhere with rust-lang#130278. I took a wrong turn at some point and ended making way too many changes so instead I started again back from 0 and this time it worked out as expected. r? ```@notriddle```
Rollup merge of rust-lang#131691 - GuillaumeGomez:intra-doc-link-filter-out-2, r=notriddle Delay ambiguous intra-doc link resolution after `Cache` has been populated Fixesrust-lang#130233. I was getting nowhere with rust-lang#130278. I took a wrong turn at some point and ended making way too many changes so instead I started again back from 0 and this time it worked out as expected. r? ```@notriddle```
Fixes#130233.
Since such items cannot be linked to, there is no point in keeping them as candidates.
r? @notriddle