diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2020-07-14 13:46:29 +0200 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2020-07-14 13:46:29 +0200 |
| commit | f823386db85ec1f0ee973b9c0534a9902dbcc2e2 (patch) | |
| tree | 36e3a15387141155c9684d74e28cd1029c04d18f | |
| parent | 735baad6cea6d8f317fc83f2f077cd7148dcb3d9 (diff) | |
| download | rust-f823386db85ec1f0ee973b9c0534a9902dbcc2e2.tar.gz rust-f823386db85ec1f0ee973b9c0534a9902dbcc2e2.zip | |
Add mark
| -rw-r--r-- | crates/ra_ide/src/completion/presentation.rs | 2 |
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 48afee5fb4a..e23971526fc 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#" |
