aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-22 20:58:35 +0100
committerGitHub <[email protected]>2019-08-22 20:58:35 +0100
commitdaf1a96ff07d7b6e7ae3e2878b300058091bbf6e (patch)
tree3419abf3750aefc3d36d143a663f265714fa2a4f /crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rs
parent08e5d394dfbca28b15ed5dc772d55d48f87c3f54 (diff)
parent3e14b16c4d67e6a87e21424dd56732b511724e04 (diff)
Merge #1722
1722: Parse `box` keyword in patterns below top-level r=matklad a=ecstatic-morse This extends the parser to handle patterns like `if let Some(box x) = ...` where the `box` keyword is not at the top-level. The last line of the added test caused a `ParseError`. This is a variant of #1412 which was not fixed by #1414. ~~I'm not familiar with `rust-analyzer`, otherwise I would fix this as well :smile:.~~ Co-authored-by: Dylan MacKenzie <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rs')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rs b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rs
index 9e009e24f..2d476278d 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rs
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rs
@@ -5,5 +5,7 @@ fn foo() {
5 X | Y if Z => (), 5 X | Y if Z => (),
6 | X | Y if Z => (), 6 | X | Y if Z => (),
7 | X => (), 7 | X => (),
8 box X => (),
9 Some(box X) => (),
8 }; 10 };
9} 11}