aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar/params.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-13 11:55:04 +0000
committerGitHub <[email protected]>2020-03-13 11:55:04 +0000
commit02b44006b8e37a8cd3f96d5b1c949d62e01be2e8 (patch)
tree69121d32a0a4e6484945fe1afa7724ea11ed223a /crates/ra_parser/src/grammar/params.rs
parentb0ed808266e346b0f9330822f874e930710df4ec (diff)
parent680182d0a0853a3a76fd1cae9838feb5b0acf31c (diff)
Merge #3575
3575: Restore cargo-fmt gating r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_parser/src/grammar/params.rs')
-rw-r--r--crates/ra_parser/src/grammar/params.rs22
1 files changed, 2 insertions, 20 deletions
diff --git a/crates/ra_parser/src/grammar/params.rs b/crates/ra_parser/src/grammar/params.rs
index 272661b1d..3ca32185c 100644
--- a/crates/ra_parser/src/grammar/params.rs
+++ b/crates/ra_parser/src/grammar/params.rs
@@ -82,26 +82,8 @@ const VALUE_PARAMETER_FIRST: TokenSet = patterns::PATTERN_FIRST.union(types::TYP
82fn value_parameter(p: &mut Parser, flavor: Flavor) { 82fn value_parameter(p: &mut Parser, flavor: Flavor) {
83 let m = p.start(); 83 let m = p.start();
84 match flavor { 84 match flavor {
85 // test trait_fn_placeholder_parameter 85 // test fn_def_param
86 // trait Foo { 86 // fn foo((x, y): (i32, i32)) {}
87 // fn bar(_: u64, mut x: i32);
88 // }
89
90 // test trait_fn_patterns
91 // trait T {
92 // fn f1((a, b): (usize, usize)) {}
93 // fn f2(S { a, b }: S) {}
94 // fn f3(NewType(a): NewType) {}
95 // fn f4(&&a: &&usize) {}
96 // }
97
98 // test fn_patterns
99 // impl U {
100 // fn f1((a, b): (usize, usize)) {}
101 // fn f2(S { a, b }: S) {}
102 // fn f3(NewType(a): NewType) {}
103 // fn f4(&&a: &&usize) {}
104 // }
105 Flavor::FnDef => { 87 Flavor::FnDef => {
106 patterns::pattern(p); 88 patterns::pattern(p);
107 types::ascription(p); 89 types::ascription(p);