mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +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 {
|
if variant_kind == StructKind::Tuple {
|
||||||
|
mark::hit!(inserts_parens_for_tuple_enums);
|
||||||
let params = Params::Anonymous(variant.fields(ctx.db).len());
|
let params = Params::Anonymous(variant.fields(ctx.db).len());
|
||||||
res = res.add_call_parens(ctx, qualified_name, params)
|
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]
|
#[test]
|
||||||
fn inserts_parens_for_tuple_enums() {
|
fn inserts_parens_for_tuple_enums() {
|
||||||
|
mark::check!(inserts_parens_for_tuple_enums);
|
||||||
check_edit(
|
check_edit(
|
||||||
"Some",
|
"Some",
|
||||||
r#"
|
r#"
|
||||||
|
|
Loading…
Reference in a new issue