Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/pattern.rs')
| -rw-r--r-- | crates/ide-completion/src/completions/pattern.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/ide-completion/src/completions/pattern.rs b/crates/ide-completion/src/completions/pattern.rs index 65b6eee188..8d7fbc6627 100644 --- a/crates/ide-completion/src/completions/pattern.rs +++ b/crates/ide-completion/src/completions/pattern.rs @@ -111,10 +111,8 @@ pub(crate) fn complete_pattern_path( path_ctx @ PathCompletionCtx { qualified, .. }: &PathCompletionCtx, ) { match qualified { - Qualified::With { resolution: Some(resolution), is_super_chain, .. } => { - if *is_super_chain { - acc.add_keyword(ctx, "super::"); - } + Qualified::With { resolution: Some(resolution), super_chain_len, .. } => { + acc.add_super_keyword(ctx, *super_chain_len); match resolution { hir::PathResolution::Def(hir::ModuleDef::Module(module)) => { |