[][src]Crate rustc_resolve

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Modules

build_reduced_graph [
Experimental
]

Reduced graph building

check_unused [
Experimental
]
diagnostics [
Experimental
]
macros [
Experimental
]
resolve_imports [
Experimental
]

Structs

AmbiguityError [
Experimental
]
BindingError [
Experimental
]
BindingInfo [
Experimental
]
ImportSuggestion [
Experimental
]

A free importable items suggested in case of resolution failure.

ModuleData [
Experimental
]

One node in the tree of modules.

NameBinding [
Experimental
]

Records a possibly-private value, type, or module definition.

PerNS [
Experimental
]

Just a helper ‒ separate structure for each namespace.

PrimitiveTypeTable [
Experimental
]

Interns the names of the primitive types.

PrivacyError [
Experimental
]
Resolver [
Experimental
]

The main resolver class.

ResolverArenas [
Experimental
]

Nothing really interesting here, it just provides memory for the rest of the crate.

Rib [
Experimental
]

One local scope.

UseError [
Experimental
]
UsePlacementFinder [
Experimental
]

Enums

AliasPossibility [
Experimental
]
AssocSuggestion [
Experimental
]

A field or associated item from self type suggested in case of resolution failure.

CrateLint [
Experimental
]
LexicalScopeBinding [
Experimental
]

An intermediate resolution result.

MakeGlobMap [
Experimental
]
ModuleKind [
Experimental
]
ModuleOrUniformRoot [
Experimental
]
NameBindingKind [
Experimental
]
Namespace [
Experimental
]

Different kinds of symbols don't influence each other.

PathResult [
Experimental
]
PathSource [
Experimental
]
PatternSource [
Experimental
]
ResolutionError [
Experimental
]
RibKind [
Experimental
]

The rib kind controls the translation of local definitions (Def::Local) to upvars (Def::Upvar).

TypeParameters [
Experimental
]

Constants

DIAGNOSTICS [
Experimental
]

Traits

ToNameBinding [
Experimental
]

Functions

err_path_resolution [
Experimental
]
import_candidate_to_paths [
Experimental
]

Get the path for an enum and the variant from an ImportSuggestion for an enum variant.

is_known_tool [
Experimental
]
is_self_type [
Experimental
]
is_self_value [
Experimental
]
module_to_string [
Experimental
]

A somewhat inefficient routine to obtain the name of a module.

names_to_string [
Experimental
]
path_names_to_string [
Experimental
]
reduce_impl_span_to_impl_keyword [
Experimental
]

Adjust the impl span so that just the impl keyword is taken by removing everything after < ("impl<T> Iterator for A<T> {}" -> "impl") and everything after the first whitespace ("impl Iterator for A" -> "impl")

resolve_error [
Experimental
]

Combines an error with provided span and emits it

resolve_struct_error [
Experimental
]
show_candidates [
Experimental
]

When an entity with a given name is not available in scope, we search for entities with that name in all crates. This method allows outputting the results of this search in a programmer-friendly way

Type Definitions

BindingMap [
Experimental
]

Map from the name in a pattern to its binding mode.

Module [
Experimental
]