aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-14 12:46:29 +0100
committerAleksey Kladov <[email protected]>2020-07-14 12:46:29 +0100
commitf823386db85ec1f0ee973b9c0534a9902dbcc2e2 (patch)
tree36e3a15387141155c9684d74e28cd1029c04d18f /crates/ra_ide
parent735baad6cea6d8f317fc83f2f077cd7148dcb3d9 (diff)
Add mark
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/completion/presentation.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs
index 48afee5fb..e23971526 100644
--- a/crates/ra_ide/src/completion/presentation.rs
+++ b/crates/ra_ide/src/completion/presentation.rs
@@ -315,6 +315,7 @@ impl Completions {
315 } 315 }
316 316
317 if variant_kind == StructKind::Tuple { 317 if variant_kind == StructKind::Tuple {
318 mark::hit!(inserts_parens_for_tuple_enums);
318 let params = Params::Anonymous(variant.fields(ctx.db).len()); 319 let params = Params::Anonymous(variant.fields(ctx.db).len());
319 res = res.add_call_parens(ctx, qualified_name, params) 320 res = res.add_call_parens(ctx, qualified_name, params)
320 } 321 }
@@ -865,6 +866,7 @@ fn main() { foo(${1:foo}, ${2:bar}, ${3:ho_ge_})$0 }
865 866
866 #[test] 867 #[test]
867 fn inserts_parens_for_tuple_enums() { 868 fn inserts_parens_for_tuple_enums() {
869 mark::check!(inserts_parens_for_tuple_enums);
868 check_edit( 870 check_edit(
869 "Some", 871 "Some",
870 r#" 872 r#"