mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
Add mark
This commit is contained in:
parent
735baad6ce
commit
f823386db8
1 changed files with 2 additions and 0 deletions
|
@ -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#"
|
||||
|
|
Loading…
Reference in a new issue