Module rustc_resolve::diagnostics[][src]

Structs

A free importable items suggested in case of resolution failure.

Enums

Functions

Given a binding_span, return the span through to the comma or opening brace of the previous binding.

Given a use_span of a binding within a use statement, returns the highlighted span and if it is a nested use tree.

Given a binding_span of a binding within a use statement:

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").

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

Potential candidate for an undeclared or out-of-scope label - contains the ident of a similarly named label and whether or not it is reachable.

A vector of spans and replacements, a message and applicability.