Skip to content

Commit 83433cd

Browse files
Centralize box pattern tests in patterns.rs
1 parent 1e991f2 commit 83433cd

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

crates/ra_parser/src/grammar/expressions/atom.rs

-2
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,6 @@ pub(crate) fn match_arm_list(p: &mut Parser) {
414414
// X | Y if Z => (),
415415
// | X | Y if Z => (),
416416
// | X => (),
417-
// box X => (),
418-
// Some(box X) => (),
419417
// };
420418
// }
421419
fn match_arm(p: &mut Parser) -> BlockLike {

crates/ra_parser/src/grammar/patterns.rs

-5
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,6 @@ fn bind_pat(p: &mut Parser, with_at: bool) -> CompletedMarker {
269269
m.complete(p, BIND_PAT)
270270
}
271271

272-
// test_err ref_box_pat
273-
// fn main() {
274-
// let ref box i = ();
275-
// }
276-
277272
// test box_pat
278273
// fn main() {
279274
// let box i = ();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fn main() {
2+
let ref box i = ();
3+
let mut box i = ();
4+
let ref mut box i = ();
5+
}
6+

0 commit comments

Comments
 (0)