From 719710a13256a32b9fcbf06c1ff43f8961b9b2e6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Aug 2018 11:21:13 +0300 Subject: break&continue --- .../libsyntax2/tests/data/parser/err/0012_broken_lambda.rs | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.rs (limited to 'crates/libsyntax2/tests/data/parser/err') diff --git a/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.rs b/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.rs deleted file mode 100644 index ad0d8eb4c..000000000 --- a/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.rs +++ /dev/null @@ -1,12 +0,0 @@ -pub(super) fn process<'a, S: Sink<'a>>(builder: &mut S, tokens: &[Token], events: Vec) { - let mut next_tok_idx = 0; - let eat_ws = |idx: &mut usize, &mut | { - while let Some(token) = tokens.get(*idx) { - if !token.kind.is_trivia() { - break; - } - builder.leaf(token.kind, token.len); - *idx += 1 - } - }; -} -- cgit v1.2.3