Closed
Description
RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
RFC PR: rust-lang/rfcs#1946
Todo:
- Land Implement RFC 1946 - intra-rustdoc links #47046
- Make it work with cross-crate imports (Support intra-doc links on cross-crate reexports #65983, Implement RFC 1946 - intra-rustdoc links #47046 (comment))
- Make it work for proc macros Intra-doc links doesn't work for proc macros #73173
- Make it warn more on resolution errors (Add warning if a resolution failed #49542)
- Make warnings/errors use better spans than the first line of docs
- first step: attribute (Point to the rustdoc attribute where intralink resolution failed. #51111)
- point to actual link in doc comment (Use spans pointing at the inside of a rustdoc attribute #51391)
- Add lint for link resolution failure (Add lint for intra link resolution failure #51382)
- Implied Shortcut Reference Links (Implement implied shortcut links for intra-rustdoc-links #48335)
- Enum variants and UFCS/associated methods (Fixes for intra-doc-links #47701)
- Primitives (Add primitive intra-links #49459)
- Use the right resolution scopes for inner doc comments on things that aren't modules (rustdoc intra links: Module-level doc uses parent module's namespace instead of own #55364)
- Handle fields and variants (Add support for variant and types fields for intra links #49512)
- Handle fields inside struct variants (Intra doc enum variant field #66704)
- Support
Self
(intra-rustdoc links: Consider supportingSelf
#49583) - Write documentation (Document intra-rustdoc links in the unstable book #66000)
- Stabilization (Stabilize intra-doc links #74430 - current impl is gated to only run on nightly, but does not require a feature gate)
- Handle methods from traits implementations
- Support anchors (Support anchors intra doc links #66675)
- Support missing primitive types (such as slices) (Intra-rustdoc links do not work for all primitives #63351)
- Allow referring to
Self::item
(forcmp
onOrd
) - Fix current crate linking when no module is provided in the path (for example,
Foo
won't link to the crate'sFoo
type for some reason) -
doc(hidden)
reexports can break intra-doc links (Cross-crate intra-doc links broken for functions when there's a doc(hidden) full-crate reexport involved #73363) - Support associated items in contexts other than documenting a trait method (Fix intra-doc links for associated items #74489)
Other related issues:
- Suppress privacy errors with document-private-types (Rustdoc links to private types on private items generate a warning #74134, fix at rustdoc: Allow linking from private items to private types #74147)
- provide option to turn intra-link resolution errors into proper errors (rustdoc: provide option to turn intra-link resolution errors into proper errors #50082)
Metadata
Metadata
Assignees
Labels
Area: Intra-doc links, the ability to link to items in docs by nameBlocker: Approved by a merged RFC but not yet implemented.Category: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.