-
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
Prelude item shows up in two locations in docs #32343
Comments
Yes, crate-local inlining inlines items that would be stripped at their original location and does not track whether, how often, or where an item has been inlined. It'd be easy enough to apply The only issue is that rustdoc doesn't know about "canonical locations", so it's not quite clear what should be done about the (then probably broken) link of the |
So |
These links are generated using the fully resolved The used import-path is available as string-segments, but I'm a bit wary of using them to create links. (e.g. #29814) |
rustdoc: Consider `doc(no_inline)` in crate-local inlining Imports with `doc(no_inline)` will not be inlined, even when `doc(inline)` is present. fixes rust-lang#32343 r? @alexcrichton
Wow, you're so good at fixing rustdoc issues ❤️ |
The items inside
std::os::unix::prelude
all get their own doc page under that namespace, which duplicates their more canonical location.Compare:
This does not apply to
std::io::prelude
, I believe the difference is that the io prelude reexports items that are directly visible in their declared location.Solving this (so that the prelude-ish module does not duplicate docs) would help me in third party library development as well.
The text was updated successfully, but these errors were encountered: