-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Prefer visibility map parents that are not doc(hidden)
first
#99698
Conversation
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
The best way to access the attributes on a |
not sure how hard this is in rustc_metadata, but rustdoc does it like so: rust/src/librustdoc/visit_ast.rs Lines 51 to 59 in e1d1848
|
…gillot Prefer visibility map parents that are not `doc(hidden)` first Far simpler approach to rust-lang#98876. This only fixes the case where the parent is `doc(hidden)`, not where the child is `doc(hidden)` since I don't know how to get the attrs on the import statement given a `ModChild`... I'll try to follow up with that, but this is a good first step.
Rollup of 8 pull requests Successful merges: - rust-lang#98583 (Stabilize Windows `FileTypeExt` with `is_symlink_dir` and `is_symlink_file`) - rust-lang#99698 (Prefer visibility map parents that are not `doc(hidden)` first) - rust-lang#99700 (Add a clickable link to the layout section) - rust-lang#99712 (passes: port more of `check_attr` module) - rust-lang#99759 (Remove dead code from cg_llvm) - rust-lang#99765 (Don't build std for *-uefi targets) - rust-lang#99771 (Update pulldown-cmark version to 0.9.2 (fixes url encoding for some chars)) - rust-lang#99775 (rustdoc: do not allocate String when writing path full name) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
@compiler-errors any chance that this contributed to the regression reported in #99792 (comment) ? |
Yes very likely. |
Far simpler approach to #98876.
This only fixes the case where the parent is
doc(hidden)
, not where the child isdoc(hidden)
since I don't know how to get the attrs on the import statement given aModChild
... I'll try to follow up with that, but this is a good first step.