[rustdoc] Generate redirect map file#81223
Conversation
This comment has been minimized.
This comment has been minimized.
0784868 to
d69e1f1
Compare
|
The implementation looks mostly fine to me, but I'm not 100% convinced this is necessary - @pietroalbini the main issue in #81134 was that rustdoc is generating inline |
@GuillaumeGomez I have some bits of feedback:
@jyn514 technically yes, but even the |
|
☔ The latest upstream changes (presumably #81240) made this pull request unmergeable. Please resolve the merge conflicts. |
d69e1f1 to
d9868a0
Compare
This comment has been minimized.
This comment has been minimized.
d9868a0 to
78f50d2
Compare
|
The output you posted on the PR body looks good @GuillaumeGomez, but there should be a test for it. |
|
I'm waiting for #81197 to add a run-make test. |
|
☔ The latest upstream changes (presumably #80987) made this pull request unmergeable. Please resolve the merge conflicts. |
jyn514
left a comment
There was a problem hiding this comment.
I'm waiting for #81197 to add a run-make test.
@Mark-Simulacrum asked that I drop that change from the PR, so I would just make it run-make-fulldeps for now.
|
Also, please remember to update the labels so it's easy to tell the state of the PR. I didn't realize you thought this was blocked. |
78f50d2 to
0a01acf
Compare
|
I added the |
0a01acf to
735320e
Compare
735320e to
c73b1a1
Compare
|
@jyn514 Thanks a lot for your great catch! I fixed it. |
jyn514
left a comment
There was a problem hiding this comment.
This looks good to me (with nits fixed), at least good enough to be on nightly. @pietroalbini may want to take another look before this is merged though.
c73b1a1 to
d1c223d
Compare
d1c223d to
41fc58b
Compare
|
Updated! Waiting for @pietroalbini now. :) |
|
The format looks good on my end! |
|
@bors r+ |
|
📌 Commit 41fc58b has been approved by |
…p, r=jyn514 [rustdoc] Generate redirect map file Fixes rust-lang#81134. So with this code: ```rust #![crate_name = "foo"] pub use private::Quz; pub use hidden::Bar; mod private { pub struct Quz; } #[doc(hidden)] pub mod hidden { pub struct Bar; } #[macro_export] macro_rules! foo { () => {} } ``` It generates: ```json { "foo/macro.foo!.html": "foo/macro.foo.html", "foo/private/struct.Quz.html": "foo/struct.Quz.html", "foo/hidden/struct.Bar.html": "foo/struct.Bar.html" } ``` Do the pathes look as you expected `@pietroalbini?` r? `@jyn514`
…p, r=jyn514 [rustdoc] Generate redirect map file Fixes rust-lang#81134. So with this code: ```rust #![crate_name = "foo"] pub use private::Quz; pub use hidden::Bar; mod private { pub struct Quz; } #[doc(hidden)] pub mod hidden { pub struct Bar; } #[macro_export] macro_rules! foo { () => {} } ``` It generates: ```json { "foo/macro.foo!.html": "foo/macro.foo.html", "foo/private/struct.Quz.html": "foo/struct.Quz.html", "foo/hidden/struct.Bar.html": "foo/struct.Bar.html" } ``` Do the pathes look as you expected ``@pietroalbini?`` r? ``@jyn514``
…p, r=jyn514 [rustdoc] Generate redirect map file Fixes rust-lang#81134. So with this code: ```rust #![crate_name = "foo"] pub use private::Quz; pub use hidden::Bar; mod private { pub struct Quz; } #[doc(hidden)] pub mod hidden { pub struct Bar; } #[macro_export] macro_rules! foo { () => {} } ``` It generates: ```json { "foo/macro.foo!.html": "foo/macro.foo.html", "foo/private/struct.Quz.html": "foo/struct.Quz.html", "foo/hidden/struct.Bar.html": "foo/struct.Bar.html" } ``` Do the pathes look as you expected ```@pietroalbini?``` r? ```@jyn514```
Rollup of 10 pull requests Successful merges: - rust-lang#81223 ([rustdoc] Generate redirect map file) - rust-lang#82439 (BTree: fix untrue safety) - rust-lang#82469 (Use a crate to produce rustdoc tree comparisons instead of the `diff` command) - rust-lang#82589 (unix: Non-mutable bufs in send_vectored_with_ancillary_to) - rust-lang#82689 (meta: Notify Zulip for rustdoc nominated issues) - rust-lang#82695 (Revert non-power-of-two vector restriction) - rust-lang#82706 (use outer_expn_data() instead of outer_expn().expn_data()) - rust-lang#82710 (FloatToInit: Replacing round_unchecked_to --> to_int_unchecked) - rust-lang#82712 (Remove unnecessary conditional `cfg(target_os)` for `redox` and `vxworks`) - rust-lang#82713 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #81134.
So with this code:
It generates:
{ "foo/macro.foo!.html": "foo/macro.foo.html", "foo/private/struct.Quz.html": "foo/struct.Quz.html", "foo/hidden/struct.Bar.html": "foo/struct.Bar.html" }Do the pathes look as you expected @pietroalbini?
r? @jyn514