aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src
diff options
context:
space:
mode:
authorDylan MacKenzie <[email protected]>2019-08-24 00:19:23 +0100
committerDylan MacKenzie <[email protected]>2019-08-24 00:19:53 +0100
commit83433cd1f0ce2ebe1818caa6793f61372e4fa5a6 (patch)
treee2f1bfac78356dcbb8d7c4d88eb78f883577d44b /crates/ra_parser/src
parent1e991f2eaf3f6a69db3622122f0617e7937a1439 (diff)
Centralize `box` pattern tests in `patterns.rs`
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r--crates/ra_parser/src/grammar/expressions/atom.rs2
-rw-r--r--crates/ra_parser/src/grammar/patterns.rs5
2 files changed, 0 insertions, 7 deletions
diff --git a/crates/ra_parser/src/grammar/expressions/atom.rs b/crates/ra_parser/src/grammar/expressions/atom.rs
index ab8fb9f6e..bc942ae01 100644
--- a/crates/ra_parser/src/grammar/expressions/atom.rs
+++ b/crates/ra_parser/src/grammar/expressions/atom.rs
@@ -414,8 +414,6 @@ pub(crate) fn match_arm_list(p: &mut Parser) {
414// X | Y if Z => (), 414// X | Y if Z => (),
415// | X | Y if Z => (), 415// | X | Y if Z => (),
416// | X => (), 416// | X => (),
417// box X => (),
418// Some(box X) => (),
419// }; 417// };
420// } 418// }
421fn match_arm(p: &mut Parser) -> BlockLike { 419fn match_arm(p: &mut Parser) -> BlockLike {
diff --git a/crates/ra_parser/src/grammar/patterns.rs b/crates/ra_parser/src/grammar/patterns.rs
index 67f1548a7..f9e6de13c 100644
--- a/crates/ra_parser/src/grammar/patterns.rs
+++ b/crates/ra_parser/src/grammar/patterns.rs
@@ -269,11 +269,6 @@ fn bind_pat(p: &mut Parser, with_at: bool) -> CompletedMarker {
269 m.complete(p, BIND_PAT) 269 m.complete(p, BIND_PAT)
270} 270}
271 271
272// test_err ref_box_pat
273// fn main() {
274// let ref box i = ();
275// }
276
277// test box_pat 272// test box_pat
278// fn main() { 273// fn main() {
279// let box i = (); 274// let box i = ();