aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/completions/unqualified_path.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-27 02:22:28 +0100
committerGitHub <[email protected]>2021-05-27 02:22:28 +0100
commit12d46f835e5619f1731b3697c46065f4b737758c (patch)
treee8750a920f92bbbd4fe3cb23be585eed7ad92b24 /crates/ide_completion/src/completions/unqualified_path.rs
parentd6ed315806e23d9ebda96ecfbe13da2154a2289c (diff)
parent6ec4ea8d9eb9ad6ad8b91968bde09121b5b791a0 (diff)
Merge #9018
9018: Collapse more CompletionContext booleans into enums r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide_completion/src/completions/unqualified_path.rs')
-rw-r--r--crates/ide_completion/src/completions/unqualified_path.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ide_completion/src/completions/unqualified_path.rs b/crates/ide_completion/src/completions/unqualified_path.rs
index b8f8ef25f..7496d26c4 100644
--- a/crates/ide_completion/src/completions/unqualified_path.rs
+++ b/crates/ide_completion/src/completions/unqualified_path.rs
@@ -13,8 +13,7 @@ pub(crate) fn complete_unqualified_path(acc: &mut Completions, ctx: &CompletionC
13 || ctx.record_pat_syntax.is_some() 13 || ctx.record_pat_syntax.is_some()
14 || ctx.attribute_under_caret.is_some() 14 || ctx.attribute_under_caret.is_some()
15 || ctx.mod_declaration_under_caret.is_some() 15 || ctx.mod_declaration_under_caret.is_some()
16 || ctx.has_impl_parent 16 || ctx.has_impl_or_trait_parent()
17 || ctx.has_trait_parent
18 { 17 {
19 return; 18 return;
20 } 19 }