Skip to main content

Module resolve

Module resolve 

Source
Expand description

This module contains types that carry name resolution results from rustc_resolve to a consumer in another crate (e.g. AST lowering, metadata, or a query).

Structs§

AmbigModChild
Same as ModChild, however, it includes ambiguity error.
DelegationInfo
MainDefinition
ModChild
This structure is supposed to keep enough data to re-create Decls for other crates during name resolution. Right now the bindings are not recreated entirely precisely so we may need to add more data in the future to correctly support macros 2.0, for example. Module child can be either a proper item or a reexport (including private imports). In case of reexport all the fields describe the reexport item itself, not what it refers to.
PartialRes
The result of resolving a path before lowering to HIR, with “module” segments resolved and associated item segments deferred to type checking. base_res is the resolution of the resolved part of the path, unresolved_segments is the number of unresolved segments.
PerOwnerResolverData
ResolverAstLowering
Resolutions that should only be used for lowering. This struct is meant to be consumed by lowering.
ResolverGlobalCtxt

Enums§

AstOwner
Fragment of the AST according to “HIR owner” semantics.
LifetimeRes
Resolution for a lifetime appearing in a type.
Reexport
A simplified version of ImportKind from resolve. DefIds here correspond to use and extern crate items themselves, not their targets.

Type Aliases§

DocLinkResMap