diff options
author | Aleksey Kladov <[email protected]> | 2019-04-11 14:49:35 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-11 14:49:35 +0100 |
commit | ebb0c377f0ab99a0f5e6d0c776cb9b026b62b0e4 (patch) | |
tree | 49a2c265c83ae03182cf593c52ec8a0c155ad151 /crates/ra_ide_api/src/completion/complete_pattern.rs | |
parent | 3c9f2d0e372cff6490dcd30411cb6cc1f691fde7 (diff) |
remove resolver from CompletonContext
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_pattern.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_pattern.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_pattern.rs b/crates/ra_ide_api/src/completion/complete_pattern.rs index 7abcd019b..abbb83518 100644 --- a/crates/ra_ide_api/src/completion/complete_pattern.rs +++ b/crates/ra_ide_api/src/completion/complete_pattern.rs | |||
@@ -7,7 +7,7 @@ pub(super) fn complete_pattern(acc: &mut Completions, ctx: &CompletionContext) { | |||
7 | } | 7 | } |
8 | // FIXME: ideally, we should look at the type we are matching against and | 8 | // FIXME: ideally, we should look at the type we are matching against and |
9 | // suggest variants + auto-imports | 9 | // suggest variants + auto-imports |
10 | let names = ctx.resolver.all_names(ctx.db); | 10 | let names = ctx.analyzer.resolver().all_names(ctx.db); |
11 | for (name, res) in names.into_iter() { | 11 | for (name, res) in names.into_iter() { |
12 | let r = res.as_ref(); | 12 | let r = res.as_ref(); |
13 | let def = match r.take_types().or(r.take_values()) { | 13 | let def = match r.take_types().or(r.take_values()) { |