Uh oh!
There was an error while loading. Please reload this page.
[rustdoc] Don't document stripped items in JSON renderer. - #83055
Conversation
aDotInTheVoid
commented
Mar 19, 2021
This line rust/src/librustdoc/json/conversions.rs Line 182 in b97fd3e Should be changed to |
jyn514
left a comment
There was a problem hiding this comment.
Looks good assuming my comment in #80664 (comment) is accurate that JSON doesn't care about inlining.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sounds good - could you change that to unreachable! as part of this PR? |
7d9ac84 to
a72ef29CompareUh oh!
There was an error while loading. Please reload this page.
aDotInTheVoid
commented
Mar 22, 2021
It turns out that we also don't need to call I'll let you know when this is ready for review |
This comment has been minimized.
This comment has been minimized.
9cf63eb to
fc82df4CompareaDotInTheVoid
commented
Mar 22, 2021
This PR is a bit of a mess, but now does 3 things
The git history is a mess, and I'd be willing to clean it up and/or split this into 3 pr's if you want @rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
jyn514
commented
Mar 24, 2021
Can you post what tests fail when you disable this for the HTML backend too? I'd like to keep it in sync with the JSON backend where possible. |
jyn514
commented
Mar 24, 2021
Splitting this into 2 commits - one changing jsondocck, the other fixing the bug - seems fine. |
jyn514
commented
Mar 24, 2021
It wasn't clear to me by reading: which test is this? Where is the collision? Could you add it as a comment? |
fc82df4 to
eb72f7eCompareaDotInTheVoid
commented
Mar 24, 2021
Like every single one. log. If instead we instrad call for non-striped, but dont for non striped the following tests fail (accurate 2 weeks ago, I can rerun now if it realy matters) log
Its the
Done and force pushed @jyn514 this is now waiting on review, you forgot to set it to waiting on author. |
This comment has been minimized.
This comment has been minimized.
Welp, I guess not. @rustbot modify labels: -S-waiting-on-review +S-waiting-on-author |
eb72f7e to
9ba9297Compare
This comment has been minimized.
This comment has been minimized.
aDotInTheVoid
commented
Mar 24, 2021
Rebased onto master, can reproduce |
aDotInTheVoid
commented
Mar 24, 2021
@rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
jyn514
commented
Mar 25, 2021
@bors r+ |
bors
commented
Mar 25, 2021
📌 Commit d9e2d8d has been approved by |
…doc, r=jyn514 [rustdoc] Don't document stripped items in JSON renderer. Fixesrust-lang#80664, see [my comment there](rust-lang#80664 (comment)) for why Note that we already do something similar in `convert_item`: https://github.com/rust-lang/rust/blob/bb4cdf8ec034dca5c056ec9295f38062e5b7e871/src/librustdoc/json/conversions.rs#L28-L31 `@rustbot` modify labels: +T-rustdoc +A-rustdoc-json r? `@jyn514` cc `@CraftSpider`
Rollup of 8 pull requests Successful merges: - rust-lang#83055 ([rustdoc] Don't document stripped items in JSON renderer.) - rust-lang#83437 (Refactor rust-lang#82270 as lint instead of an error) - rust-lang#83444 (Fix bootstrap tests on beta) - rust-lang#83456 (Add docs for Vec::from functions) - rust-lang#83463 (ExitStatusExt: Fix missing word in two docs messages) - rust-lang#83470 (Fix patch note about rust-lang#80653 not mentioning nested nor recursive) - rust-lang#83485 (Mark asm tests as requiring LLVM 10.0.1) - rust-lang#83486 (Don't ICE when using `#[global_alloc]` on a non-item statement) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
rustdoc: Turn `JsonRenderer::mod_item_in` into `unreachable!()` The JSON renderer no longer gets called on modules (since rust-lang#83055). r? `@aDotInTheVoid`
rustdoc: Turn `JsonRenderer::mod_item_in` into `unreachable!()` The JSON renderer no longer gets called on modules (since rust-lang#83055). r? ``@aDotInTheVoid``
Fixes#80664, see my comment there for why
Note that we already do something similar in
convert_item:rust/src/librustdoc/json/conversions.rs
Lines 28 to 31 in bb4cdf8
@rustbot modify labels: +T-rustdoc +A-rustdoc-json
r? @jyn514
cc @CraftSpider