Skip to content

Commit aad0e63

Browse files
Merge #3779
3779: Complete only missing fields in pats r=matklad a=SomeoneToIgnore A follow-up for #3694 Same name vs string [issue](#3694 (comment)) persists here, now I'm able to obtain `ast::Name`, but I see no way to convert it into `hir::Name` or vice versa. Co-authored-by: Kirill Bulatov <[email protected]>
2 parents ab284f3 + 1335608 commit aad0e63

File tree

4 files changed

+413
-363
lines changed

4 files changed

+413
-363
lines changed

crates/ra_ide/src/completion.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ mod completion_context;
55
mod presentation;
66

77
mod complete_dot;
8-
mod complete_record_literal;
9-
mod complete_record_pattern;
8+
mod complete_record;
109
mod complete_pattern;
1110
mod complete_fn_param;
1211
mod complete_keyword;
@@ -89,8 +88,7 @@ pub(crate) fn completions(
8988
complete_path::complete_path(&mut acc, &ctx);
9089
complete_scope::complete_scope(&mut acc, &ctx);
9190
complete_dot::complete_dot(&mut acc, &ctx);
92-
complete_record_literal::complete_record_literal(&mut acc, &ctx);
93-
complete_record_pattern::complete_record_pattern(&mut acc, &ctx);
91+
complete_record::complete_record(&mut acc, &ctx);
9492
complete_pattern::complete_pattern(&mut acc, &ctx);
9593
complete_postfix::complete_postfix(&mut acc, &ctx);
9694
complete_macro_in_item_position::complete_macro_in_item_position(&mut acc, &ctx);

0 commit comments

Comments
 (0)