-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for intra-doc links in libstd #75080
Copy link
Copy link
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for switching libstd to intra-doc links (rust-lang/rfcs#1946, #74430 (comment)).
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also uses as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Mentoring instructions (or rather, suggested workflow)
Please first leave a comment here stating that you want to work on file xxx.rs or module xxx, to make sure that this implements
Sync.rewrite it as
In most cases, the type will already be in scope, in which case you can remove the reference link altogether.
For an example PR, see #74470.
x.py doc library/std. This shouldwarn(broken_intra_doc_links)by default../x.py tidy, which will runrustfmt.In case of rustdoc bugs, there may be broken links that didn't show up when you ran
x.py doc. However, these will be caught by the test suite, so you don't have to check them locally.Suggested tools
coreandstd: Tracking Issue for intra-doc links in libstd #75080 (comment)Caveats
Primitives that have the same name as a module in scope must useThis was changed in #75318,type@to disambiguate them. For example, to link tocharfrom std, usetype@char.charwill now link to the primitive, not the module.The following cannot use intra-doc links. If you run into an issue with them, it's ok to skip them. However, if you see an issue not mentioned here, please file a bug report!
coretostd(Figure out a way to link to downstream crates #74481)--stage 0, so you may not be able to make changes that require recently merged fixes: Move to doc links inside the prelude #75368 (comment)Associated items anywhere other than documenting the associated item itself (Fix intra-doc links for associated items #74489)FixedLinks on default function implementations for a trait (Intra-doc links are not resolved in inherited docs from upstream traits #73829). Note that these will not warn if they fail to resolve, so you should be careful about modifying links on traits.FixedTODO list
This list was generated with
rg '\[.*\]: \.\./.*' library/ -l | sed 's/^/- [ ] /'and may not be complete. If you see other links not mentioned here, feel free to fix them as well.Since most files only have a few links, it's fine to claim multiple files at the same time.
Unclaimed
[std::convert::identity]: crate::convert::identity(Move to intra-doc links for /library/core/src/hint.rs #75423 (comment))[i32::MAX](Fix intra-doc links for associated constants on primitives #76093)[crate::ptr]in libcore (intra-doc links:crate::ptron a re-export of core::slice is not resolved in alloc #76106)[TcpStream::read]: Read::read(Move to intra doc links for std::io #75674)In-progress
[flush]: Write::flush(https://github.com/rust-lang/rust/pull/75674/files#diff-1eb455549b75a568d81f2f6a8a7020c0R446, claimed by @pitaj in Tracking Issue for intra-doc links in libstd #75080 (comment))Completed
Cannot be fixed
The following links cannot yet be fixed due to limitations in rustdoc.
[Vec::get_mut](Move to intra-doc links for task.rs and vec.rs #75672 (comment))