Uh oh!
There was an error while loading. Please reload this page.
rustdoc: Render visibilities succinctly - #80368
Conversation
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
442675d to
4a4e038Comparecamelid
commented
Dec 25, 2020
Well, it looks like there's an issue somewhere because about 2/3 of the rustdoc tests are failing! It seems there's some ICEing, I assume from |
camelid
commented
Dec 25, 2020
So I guess I'll have to change the approach. I can't just use |
jyn514
commented
Dec 25, 2020
Can you refactor rust/src/librustdoc/passes/collect_intra_doc_links.rs Lines 777 to 795 in 1832bdd |
jyn514
commented
Dec 25, 2020
(Ideally that would be part of rustc directly but there was some controversy about that: #77984 (comment)) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
4a4e038 to
bbbfd07Compare
This comment has been minimized.
This comment has been minimized.
bbbfd07 to
50c1c27CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
21a6fec to
b959c75CompareCo-authored-by: Joshua Nelson <jyn514@gmail.com>
camelid
commented
Dec 26, 2020
Ready for another review! @rustbot label +S-waiting-on-review -S-waiting-on-author |
camelid
commented
Dec 31, 2020
Nominating for beta backport: this fixes a beta regression that makes visibilities shown in the output from |
jyn514
commented
Dec 31, 2020
I agree we should backport this, it fixes a regression introduced in 1.50, and happened to miss the cutoff and landed in 1.51 instead. @rust-lang/rustdoc how do you feel about backporting this? |
Rollup of 8 pull requests Successful merges: - rust-lang#80323 (Update and improve `rustc_codegen_{llvm,ssa}` docs) - rust-lang#80368 (rustdoc: Render visibilities succinctly) - rust-lang#80514 (Fix broken ./x.py install) - rust-lang#80519 (Take type defaults into account in suggestions to reorder generic parameters) - rust-lang#80526 (Update LLVM) - rust-lang#80532 (remove unnecessary trailing semicolon from bootstrap) - rust-lang#80548 (FIx ICE on wf check for foreign fns) - rust-lang#80551 (support pattern as const parents in type_of) Failed merges: - rust-lang#80547 (In which we start to parse const generics defaults) r? `@ghost` `@rustbot` modify labels: rollup
camelid
commented
Jan 1, 2021
Also, beta was cut just a few days ago so it's not like beta's about to hit stable: We have time to catch any potential issues. |
GuillaumeGomez
commented
Jan 1, 2021
I think we should backport it as well. |
camelid
commented
Jan 1, 2021
Should this be marked as |
GuillaumeGomez
commented
Jan 1, 2021
I *think* it requires someone from the infra. cc @pietroalbini |
camelid
commented
Jan 1, 2021
My understanding (though I may be wrong) is that |
jyn514
commented
Jan 1, 2021
Oh, I was going to wait for @Manishearth to give an opinion. We as a team should probably come up with some policy for this. |
GuillaumeGomez
commented
Jan 1, 2021
For now, half the members agreed on it so let's add the label. But as many things, we'll need to formalize it. |
emilyalbini
commented
Jan 4, 2021
@GuillaumeGomez so, the policy for beta backports is the following:
|
GuillaumeGomez
commented
Jan 4, 2021
Thanks for the information! Is there a document available somewhere with the different processes? It would be very useful. |
emilyalbini
commented
Jan 4, 2021
The docs for backporting is https://forge.rust-lang.org/release/beta-backporting.html. I'm not sure if there is a document describing the processes of each team. |
`find_nearest_parent_module` was extracted from `rustdoc::passes::collect_intra_doc_links` in rust-lang#80368. We (me and Joshua Nelson) thought at the time that it should be in rustc instead, and Joshua suggested it be a method on `TyCtxt`. However, since rust-lang#80368 was fixing a significant regression that was about to land on beta, we agreed that to be able to fix this quickly I should leave the code in rustdoc. This is a followup PR to move it to `TyCtxt`.
Mark-Simulacrum
commented
Jan 18, 2021
@camelid just a minor note for the future - would be good to try to rebase before r+ing to squash out any minor fixup commits to try and keep commit history clean :) |
…ulacrum [beta] backports This backports: * Update RLS and Rustfmt rust-lang#81027 * bump rustfmt to v1.4.32 rust-lang#81093 * Fix handling of malicious Readers in read_to_end rust-lang#80895 * Fix broken ./x.py install rust-lang#80514 * Fix x.py install not working with relative prefix rust-lang#80797 * [security] Update mdbook rust-lang#80688 * rustdoc: Render visibilities succinctly rust-lang#80368 r? `@ghost`
Fixes#79139.
r? @jyn514