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§
- Ambig
ModChild - Same as
ModChild, however, it includes ambiguity error. - Delegation
Info - Main
Definition - 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. - Partial
Res - The result of resolving a path before lowering to HIR,
with “module” segments resolved and associated item
segments deferred to type checking.
base_resis the resolution of the resolved part of the path,unresolved_segmentsis the number of unresolved segments. - PerOwner
Resolver Data - Resolver
AstLowering - Resolutions that should only be used for lowering. This struct is meant to be consumed by lowering.
- Resolver
Global Ctxt
Enums§
- AstOwner
- Fragment of the AST according to “HIR owner” semantics.
- Lifetime
Res - Resolution for a lifetime appearing in a type.
- Reexport
- A simplified version of
ImportKindfrom resolve.DefIds here correspond touseandextern crateitems themselves, not their targets.