1
Fork 0
rust/compiler/rustc_resolve/src
Esteban Küber 57967269e9 When suggesting to import an item, also suggest changing the path if appropriate
When we don't find an item we search all of them for an appropriate
import and suggest `use`ing it. This is sometimes done for expressions
that have paths with more than one segment. We now also suggest changing
that path to work with the `use`.

Fix #95413
2022-05-03 02:00:38 +00:00
..
late rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
access_levels.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
build_reduced_graph.rs Auto merge of #96431 - petrochenkov:parent, r=cjgillot 2022-05-02 14:03:20 +00:00
check_unused.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00
def_collector.rs Visit generics inside visit_fn. 2022-04-17 11:03:33 +02:00
diagnostics.rs When suggesting to import an item, also suggest changing the path if appropriate 2022-05-03 02:00:38 +00:00
ident.rs resolve: Rename unusable_binding to ignore_binding 2022-05-01 18:02:37 +03:00
imports.rs rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
late.rs When suggesting to import an item, also suggest changing the path if appropriate 2022-05-03 02:00:38 +00:00
lib.rs When suggesting to import an item, also suggest changing the path if appropriate 2022-05-03 02:00:38 +00:00
macros.rs resolve: Merge last_import_segment into Finalize 2022-05-01 18:02:35 +03:00