From f823386db85ec1f0ee973b9c0534a9902dbcc2e2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 14 Jul 2020 13:46:29 +0200 Subject: Add mark --- crates/ra_ide/src/completion/presentation.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_ide/src/completion') 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 { } if variant_kind == StructKind::Tuple { + mark::hit!(inserts_parens_for_tuple_enums); let params = Params::Anonymous(variant.fields(ctx.db).len()); res = res.add_call_parens(ctx, qualified_name, params) } @@ -865,6 +866,7 @@ fn main() { foo(${1:foo}, ${2:bar}, ${3:ho_ge_})$0 } #[test] fn inserts_parens_for_tuple_enums() { + mark::check!(inserts_parens_for_tuple_enums); check_edit( "Some", r#" -- cgit v1.2.3