diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-21 14:15:12 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-21 14:15:12 +0100 |
commit | c69f762f2673e9b671d91d7b8b110d8481f4ed07 (patch) | |
tree | e2d812e08875ef8d1f123e549c8269544bb9842c /crates/ide_completion/src/context.rs | |
parent | 488c9ef9c0c04e0afa291164db5d115d5515b00d (diff) | |
parent | 0729913525a55cad3ffe9876c1eb05f7b880d22d (diff) |
Merge #9356
9356: internal: Move out and regroup more completion tests r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide_completion/src/context.rs')
-rw-r--r-- | crates/ide_completion/src/context.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index 7b76600df..f0da98739 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs | |||
@@ -286,8 +286,11 @@ impl<'a> CompletionContext<'a> { | |||
286 | ) | 286 | ) |
287 | } | 287 | } |
288 | 288 | ||
289 | pub(crate) fn expect_record_field(&self) -> bool { | 289 | pub(crate) fn expect_field(&self) -> bool { |
290 | matches!(self.completion_location, Some(ImmediateLocation::RecordField)) | 290 | matches!( |
291 | self.completion_location, | ||
292 | Some(ImmediateLocation::RecordField | ImmediateLocation::TupleField) | ||
293 | ) | ||
291 | } | 294 | } |
292 | 295 | ||
293 | pub(crate) fn in_use_tree(&self) -> bool { | 296 | pub(crate) fn in_use_tree(&self) -> bool { |