From 1e19847af361721f0f2b0e1a70cd58559d2ca196 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 13 Mar 2020 12:20:42 +0100 Subject: Move verbose tests out of line --- crates/ra_parser/src/grammar/params.rs | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'crates/ra_parser/src/grammar') 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 fn value_parameter(p: &mut Parser, flavor: Flavor) { let m = p.start(); match flavor { - // test trait_fn_placeholder_parameter - // trait Foo { - // fn bar(_: u64, mut x: i32); - // } - - // test trait_fn_patterns - // trait T { - // fn f1((a, b): (usize, usize)) {} - // fn f2(S { a, b }: S) {} - // fn f3(NewType(a): NewType) {} - // fn f4(&&a: &&usize) {} - // } - - // test fn_patterns - // impl U { - // fn f1((a, b): (usize, usize)) {} - // fn f2(S { a, b }: S) {} - // fn f3(NewType(a): NewType) {} - // fn f4(&&a: &&usize) {} - // } + // test fn_def_param + // fn foo((x, y): (i32, i32)) {} Flavor::FnDef => { patterns::pattern(p); types::ascription(p); -- cgit v1.2.3