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_failureshould 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_strdue to it being unlikely that it is an intra-doc link. - Returns true if we should ignore
linkdue to it being unlikely that it is an intra-doc link.linkshould 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_idthat corresponds to the trait associated itemtrait_assoc_id. - trait_impls_for πGiven a type, return all trait impls in scope in
modulefor that type. Returns a set of pairs of(impl_id, trait_id).
Type AliasesΒ§
- ResolveRes π