rustc_resolve

Module diagnostics

Source

Structsยง

ImportSuggestion ๐Ÿ”’
A free importable items suggested in case of resolution failure.
TypoSuggestion ๐Ÿ”’
UsePlacementFinder ๐Ÿ”’

Enumsยง

DiagMode ๐Ÿ”’
Whether a binding is part of a pattern or a use statement. Used for diagnostics.
FoundUse ๐Ÿ”’
Whether an existing place with an use item was found.
Instead ๐Ÿ”’
A suggestion has already been emitted, change the wording slightly to clarify that both are independent options.
SuggestionTarget ๐Ÿ”’

Functionsยง

extend_span_to_previous_binding ๐Ÿ”’
Given a binding_span, return the span through to the comma or opening brace of the previous binding.
find_span_immediately_after_crate_name ๐Ÿ”’
Given a use_span of a binding within a use statement, returns the highlighted span and if it is a nested use tree.
find_span_of_binding_until_next_binding ๐Ÿ”’
Given a binding_span of a binding within a use statement:
import_candidates ๐Ÿ”’
is_span_suitable_for_use_injection ๐Ÿ”’
reduce_impl_span_to_impl_keyword ๐Ÿ”’
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").
search_for_any_use_in_items ๐Ÿ”’
show_candidates ๐Ÿ”’
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. If any entities are found and suggested, returns true, otherwise returns false.

Type Aliasesยง

LabelSuggestion ๐Ÿ”’
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.
PathString ๐Ÿ”’
Res ๐Ÿ”’
Suggestion ๐Ÿ”’
A vector of spans and replacements, a message and applicability.