diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-11 00:31:57 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-11 00:31:57 +0100 |
commit | 343b9c6e76919c255466fd9b12fc7fd46f59022e (patch) | |
tree | 107769c5884b71e865b7efe44604cfad979e1f72 /crates/ra_ide/src/completion/complete_macro_in_item_position.rs | |
parent | 349c4fcecaab90a521d4344cf965202ed7a0a54e (diff) | |
parent | a36ff4a100c2c321eec898f2cfee25c0be85ffc6 (diff) |
Merge #5303
5303: Speed up completion r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/completion/complete_macro_in_item_position.rs')
-rw-r--r-- | crates/ra_ide/src/completion/complete_macro_in_item_position.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/completion/complete_macro_in_item_position.rs b/crates/ra_ide/src/completion/complete_macro_in_item_position.rs index d6613ed7b..0447f0511 100644 --- a/crates/ra_ide/src/completion/complete_macro_in_item_position.rs +++ b/crates/ra_ide/src/completion/complete_macro_in_item_position.rs | |||
@@ -5,7 +5,7 @@ use crate::completion::{CompletionContext, Completions}; | |||
5 | pub(super) fn complete_macro_in_item_position(acc: &mut Completions, ctx: &CompletionContext) { | 5 | pub(super) fn complete_macro_in_item_position(acc: &mut Completions, ctx: &CompletionContext) { |
6 | // Show only macros in top level. | 6 | // Show only macros in top level. |
7 | if ctx.is_new_item { | 7 | if ctx.is_new_item { |
8 | ctx.scope().process_all_names(&mut |name, res| { | 8 | ctx.scope.process_all_names(&mut |name, res| { |
9 | if let hir::ScopeDef::MacroDef(mac) = res { | 9 | if let hir::ScopeDef::MacroDef(mac) = res { |
10 | acc.add_macro(ctx, Some(name.to_string()), mac); | 10 | acc.add_macro(ctx, Some(name.to_string()), mac); |
11 | } | 11 | } |