Structs§
- Import
Suggestion 🔒 - A free importable items suggested in case of resolution failure.
- Typo
Suggestion 🔒 - UsePlacement
Finder 🔒
Enums§
- Diag
Mode 🔒 - Whether a binding is part of a pattern or a use statement. Used for diagnostics.
- Found
Use 🔒 - 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.
- Suggestion
Target 🔒
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 returnsfalse
.
Type Aliases§
- Label
Suggestion 🔒 - 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.
- Path
String 🔒 - Res 🔒
- Suggestion 🔒
- A vector of spans and replacements, a message and applicability.