Module rustdoc::passes::collect_intra_doc_links
source Β· Expand description
This module implements RFC 1946: Intra-rustdoc-links
Structs§
- DiagnosticInfo π
- LinkCollector π
- PreprocessingInfo π
- ResolutionInfo π
- UnresolvedPath πThe link failed to resolve.
resolution_failure
should look to see if thereβs a more helpful error that can be given.
Enums§
- Disambiguator πDisambiguators for a link.
- PreprocessingError π
- Res π
- ResolutionFailure π
- Suggestion πA suggestion to show in a diagnostic.
- UrlFragment π
Constants§
Functions§
- ambiguity_error πReport an ambiguity error, where there were multiple possible resolutions.
- anchor_failure πReport an anchor failure.
- disambiguator_error πReport an error in the link disambiguator.
- full_res π
- Check for resolve collisions between a trait and its derive.
- preprocess_link πReturns:
- privacy_error πReport a link from a public item to a private one.
- Get the section of a link between the backticks, or the whole link if there arenβt any backticks.
- report_diagnostic πReports a diagnostic for an intra-doc link.
- resolution_failure πReports a link that failed to resolve.
- Look to see if a resolved item has an associated item named
item_name
. - resolve_primitive πResolve a primitive type or value.
- should_ignore_link πReturns true if we should ignore
path_str
due to it being unlikely that it is an intra-doc link. - Returns true if we should ignore
link
due to it being unlikely that it is an intra-doc link.link
should still have disambiguators if there were any. - In case of an ambiguity or mismatched disambiguator, suggest the correct disambiguator.
- Find the associated item in the impl
impl_id
that corresponds to the trait associated itemtrait_assoc_id
. - trait_impls_for πGiven a type, return all trait impls in scope in
module
for that type. Returns a set of pairs of(impl_id, trait_id)
.
Type Aliases§
- ResolveRes π