Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/keyword.rs')
| -rw-r--r-- | crates/ide-completion/src/completions/keyword.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-completion/src/completions/keyword.rs b/crates/ide-completion/src/completions/keyword.rs index 557992d14a..766ab4fcd7 100644 --- a/crates/ide-completion/src/completions/keyword.rs +++ b/crates/ide-completion/src/completions/keyword.rs @@ -124,8 +124,8 @@ pub(crate) fn complete_expr_keyword(acc: &mut Completions, ctx: &CompletionConte add_keyword("mut", "mut "); } - let (can_be_stmt, in_loop_body) = match ctx.path_context { - Some(PathCompletionCtx { + let (can_be_stmt, in_loop_body) = match ctx.path_context() { + Some(&PathCompletionCtx { is_absolute_path: false, kind: PathKind::Expr { in_block_expr, in_loop_body, .. }, .. |