-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix reexport of doc(hidden)
item
#106741
Fix reexport of doc(hidden)
item
#106741
Conversation
Some changes occurred in src/librustdoc/clean/types.rs cc @camelid |
231d4f1
to
5b3a261
Compare
fn import_should_be_hidden(&self, i: &Item, imp: &clean::Import) -> bool { | ||
if self.is_json_output { | ||
// FIXME: This should be handled the same way as for HTML output. | ||
imp.imported_item_is_doc_hidden(self.tcx) |
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.
I'm really unhappy about this. How the JSON output is handling the reexports is becoming problematic if we have to special case more things.
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.
I suppose the correct way to handle this is similar to how stripped modules work — the pointee is kept around because of the import item referencing it, but is marked as hidden.
@bors r+ rollup |
📌 Commit 5b3a261900a3fe71e95b1a0610f46fafebc03720 has been approved by It is now in the queue for this repository. |
@notriddle yes, this should be cleaner than adding 3rd commit ). |
5b3a261
to
675640c
Compare
Rebased. |
@bors r=notriddle rollup |
Rollup of 8 pull requests Successful merges: - rust-lang#105795 (Stabilize `abi_efiapi` feature) - rust-lang#106446 ([LSDA] Take ttype_index into account when taking unwind action) - rust-lang#106675 (Mark ZST as FFI-safe if all its fields are PhantomData) - rust-lang#106740 (Adding a hint on iterator type errors) - rust-lang#106741 (Fix reexport of `doc(hidden)` item) - rust-lang#106759 (Revert "Make nested RPITIT inherit the parent opaque's generics.") - rust-lang#106772 (Re-add mw to review rotation) - rust-lang#106778 (Exclude formatting commit from blame) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Part of #59368.
It doesn't fix the
doc(inline)
nor thedoc(hidden)
on macro. I'll do it in a follow-up PR.r? @notriddle