aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/completions/keyword.rs
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-17 14:43:21 +0100
committerLukas Wirth <[email protected]>2021-06-17 14:43:21 +0100
commit2a48b532208de413e4e5d39e81c33a4644ecaa22 (patch)
tree8c8fb1436a64a6bfd56558f41b734a966aa5725e /crates/ide_completion/src/completions/keyword.rs
parenta9a77671f2405e0cb65160c17268beec5114e259 (diff)
Correct completions in items tests
Diffstat (limited to 'crates/ide_completion/src/completions/keyword.rs')
-rw-r--r--crates/ide_completion/src/completions/keyword.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ide_completion/src/completions/keyword.rs b/crates/ide_completion/src/completions/keyword.rs
index c5cd3c2f7..c99fdef05 100644
--- a/crates/ide_completion/src/completions/keyword.rs
+++ b/crates/ide_completion/src/completions/keyword.rs
@@ -69,6 +69,9 @@ pub(crate) fn complete_expr_keyword(acc: &mut Completions, ctx: &CompletionConte
69 69
70 if ctx.has_impl_or_trait_prev_sibling() { 70 if ctx.has_impl_or_trait_prev_sibling() {
71 add_keyword("where", "where "); 71 add_keyword("where", "where ");
72 if ctx.has_impl_prev_sibling() {
73 add_keyword("for", "for ");
74 }
72 return; 75 return;
73 } 76 }
74 if ctx.previous_token_is(T![unsafe]) { 77 if ctx.previous_token_is(T![unsafe]) {