Skip to main content

Module imports

Module imports 

Source
Expand description

A bunch of methods and structures more or less related to resolving imports.

ModulesΒ§

cycle_detection πŸ”’

StructsΒ§

ImportData πŸ”’
One import.
ImportResolution πŸ”’
NameResolution πŸ”’
Records information about the resolution of a name in a namespace of a module.
UnresolvedImportError πŸ”’
An error that may be transformed into a diagnostic later. Used to combine multiple unresolved import errors within the same use tree into a single diagnostic.

EnumsΒ§

ImportKind πŸ”’
Contains data for specific kinds of imports.
ImportResolutionKind πŸ”’
PendingDecl πŸ”’
A potential import declaration in the process of being planted into a module. Also used for lazily planting names from --extern flags to extern prelude.

FunctionsΒ§

import_kind_to_string πŸ”’
import_path_to_string πŸ”’
pub_use_of_private_extern_crate_hack πŸ”’
remove_same_import πŸ”’
Removes identical import layers from two declarations.

Type AliasesΒ§

Import πŸ”’
Interned is used because values of this type have β€œidentity” and compare as unequal even if they have the same contents.
NameResolutionRef πŸ”’
Interned is used because values of this type have β€œidentity” and compare as unequal even if they have the same contents.