-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: Render visibilities succinctly #80368
Conversation
This comment has been minimized.
This comment has been minimized.
442675d
to
4a4e038
Compare
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 |
So I guess I'll have to change the approach. I can't just use |
Can you refactor rust/src/librustdoc/passes/collect_intra_doc_links.rs Lines 777 to 795 in 1832bdd
|
(Ideally that would be part of rustc directly but there was some controversy about that: #77984 (comment)) |
4a4e038
to
bbbfd07
Compare
This comment has been minimized.
This comment has been minimized.
bbbfd07
to
50c1c27
Compare
21a6fec
to
b959c75
Compare
Co-authored-by: Joshua Nelson <jyn514@gmail.com>
Ready for another review! @rustbot label +S-waiting-on-review -S-waiting-on-author |
Nominating for beta backport: this fixes a beta regression that makes visibilities shown in the output from |
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
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. |
I think we should backport it as well. |
Should this be marked as |
I *think* it requires someone from the infra. cc @pietroalbini |
My understanding (though I may be wrong) is that |
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. |
For now, half the members agreed on it so let's add the label. But as many things, we'll need to formalize it. |
@GuillaumeGomez so, the policy for beta backports is the following:
|
Thanks for the information! Is there a document available somewhere with the different processes? It would be very useful. |
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`.
@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