-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Missing short summaries for reexported items in rustdoc #77783
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Testing locally, this is fixed by simply removing the newly added |
This was added to distinguish between the attributes on the original item and attributes on the re-export: 8fbfdc5. Previously, // crate1
/// Docs in original
pub struct S;
// crate2
/// Docs on re-export
pub use crate1::S;
// how rustdoc sees it: as if _both_ docs were in crate1
/// Docs in original
/// Docs on re-export
pub struct S; After my change, it distinguishes between the same two in
I think the issue is that rust/src/librustdoc/clean/types.rs Lines 653 to 657 in 8fbfdc5
There are two possible fixes:
I'll try to get a fix in with 1. today. |
And good catch, thanks! |
Assigning |
Right, I figured that's what it was trying to do but the rust/src/librustdoc/clean/types.rs Line 614 in c71248b
collapse_docs is still collapsing the docs as it did before so if a reexport has extra docs, all links are resolved relative to the local crate.
Rather than adding |
Oops, you're right on both counts. I guess it didn't show up because of #77200.
That sounds better, yeah, then we could get rid of |
For example the current nightly docs show:

The summary lines for the reexported modules is missing. They're also missing from the search index and sidebar.
This is a regression from #77519. cc @jyn514 @GuillaumeGomez
The text was updated successfully, but these errors were encountered: