[−][src]Module rustdoc::passes::collect_intra_doc_links

This module implements RFC 1946: Intra-rustdoc-links

Structs

LinkCollector

Enums

AnchorFailure
Disambiguator

Disambiguators for a link.

ErrorKind

Top-level errors emitted by this pass.

MalformedGenerics
ResolutionFailure

A link failed to resolve.

Suggestion

A suggestion to show in a diagnostic.

Constants

COLLECT_INTRA_DOC_LINKS
PRIMITIVES

Functions

ambiguity_error

Report an ambiguity error, where there were multiple possible resolutions.

anchor_failure

Report an anchor failure.

collect_intra_doc_links
handle_variant

Given an enum variant's res, return the res of its enum and the associated fragment.

is_bool_value

Resolve a primitive value.

is_derive_trait_collision

Check for resolve collisions between a trait and its derive.

privacy_error

Report a link from a public item to a private one.

report_diagnostic

Reports a diagnostic for an intra-doc link.

resolution_failure

Reports a link that failed to resolve.

resolve_associated_trait_item

Look to see if a resolved item has an associated item named item_name.

resolve_primitive

Resolve a primitive type or value.

strip_generics_from_path
strip_generics_from_path_segment
suggest_disambiguator

In case of an ambiguity or mismatched disambiguator, suggest the correct disambiguator.

traits_implemented_by

Given a type, return all traits in scope in module implemented by that type.