-
Notifications
You must be signed in to change notification settings - Fork 13.5k
rustdoc: Record crate name instead of using None
#83399
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
Conversation
Looks great :) r=me with CI passing. |
This comment has been minimized.
This comment has been minimized.
Uh... why are 38 tests failing? That's weird... |
Maybe the change in how crate names are used is messing up URLs or something? |
I ran into something like this in #78082 - see if this is adding an extra directory named after the top-level crate. There was somewhere in html/render that overrode this later. |
Yep, it is doing that. Do you remember where the place in |
Not off the top of my head, sorry. I think I changed it as part of #78082 - you could try reading through the diff, but it's rather large. |
I do see this change, but haven't found the change that I need yet... Found this: 1697ada And this: 5e2793b |
Okay, it looks like the bug is in whatever's populating ... |
Now that we record the crate's name in its `clean::Item`, pushing the crate name onto the `stack` causes duplicate paths. E.g., the URL generated for the path `::foo::bar::baz` would be something like ../foo/foo/bar/baz With this commit, the URL is corrected to ../foo/bar/baz
Fixed the bug. Will push up commit tomorrow. |
@bors r+ |
📌 Commit c9ae359 has been approved by |
Rollup of 9 pull requests Successful merges: - rust-lang#83051 (Sidebar trait items order) - rust-lang#83313 (Only enable assert_dep_graph when query-dep-graph is enabled.) - rust-lang#83353 (Add internal io::Error::new_const to avoid allocations.) - rust-lang#83391 (Allow not emitting `uwtable` on Android) - rust-lang#83392 (Change `-W help` to display edition level.) - rust-lang#83393 (Codeblock tooltip position) - rust-lang#83399 (rustdoc: Record crate name instead of using `None`) - rust-lang#83405 (Slight visual improvements to warning boxes in the docs) - rust-lang#83415 (Remove unnecessary `Option` wrapping around `Crate.module`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #83365.
r? @jyn514