-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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] Don't document stripped items in JSON renderer. #83055
[rustdoc] Don't document stripped items in JSON renderer. #83055
Conversation
This line rust/src/librustdoc/json/conversions.rs Line 182 in b97fd3e
Should be changed to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good assuming my comment in #80664 (comment) is accurate that JSON doesn't care about inlining.
Sounds good - could you change that to unreachable! as part of this PR? |
7d9ac84
to
a72ef29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you're still making changes, but when you're ready for review - what's going on in bdf6786 ?
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
fc82df4
Compare
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 |
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. |
Splitting this into 2 commits - one changing jsondocck, the other fixing the bug - seems fine. |
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
eb72f7e
Compare
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
9ba9297
Compare
This comment has been minimized.
This comment has been minimized.
Rebased onto master, can reproduce |
@rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
@bors r+ |
📌 Commit d9e2d8d has been approved by |
…doc, r=jyn514 [rustdoc] Don't document stripped items in JSON renderer. Fixes rust-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