mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
remove resolver from CompletonContext
This commit is contained in:
parent
3c9f2d0e37
commit
ebb0c377f0
5 changed files with 9 additions and 31 deletions
|
@ -7,7 +7,7 @@ pub(super) fn complete_pattern(acc: &mut Completions, ctx: &CompletionContext) {
|
|||
}
|
||||
// FIXME: ideally, we should look at the type we are matching against and
|
||||
// suggest variants + auto-imports
|
||||
let names = ctx.resolver.all_names(ctx.db);
|
||||
let names = ctx.analyzer.resolver().all_names(ctx.db);
|
||||
for (name, res) in names.into_iter() {
|
||||
let r = res.as_ref();
|
||||
let def = match r.take_types().or(r.take_values()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue