diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar/expressions/mod.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/expressions/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/expressions/mod.rs b/crates/libsyntax2/src/grammar/expressions/mod.rs index d5ee91ad8..20e0fa328 100644 --- a/crates/libsyntax2/src/grammar/expressions/mod.rs +++ b/crates/libsyntax2/src/grammar/expressions/mod.rs | |||
@@ -2,6 +2,7 @@ mod atom; | |||
2 | 2 | ||
3 | use super::*; | 3 | use super::*; |
4 | pub(super) use self::atom::{literal, LITERAL_FIRST}; | 4 | pub(super) use self::atom::{literal, LITERAL_FIRST}; |
5 | pub(crate) use self::atom::match_arm_list; | ||
5 | 6 | ||
6 | const EXPR_FIRST: TokenSet = LHS_FIRST; | 7 | const EXPR_FIRST: TokenSet = LHS_FIRST; |
7 | 8 | ||
@@ -419,7 +420,7 @@ fn path_expr(p: &mut Parser, r: Restrictions) -> CompletedMarker { | |||
419 | // S { x, y: 32, }; | 420 | // S { x, y: 32, }; |
420 | // S { x, y: 32, ..Default::default() }; | 421 | // S { x, y: 32, ..Default::default() }; |
421 | // } | 422 | // } |
422 | fn named_field_list(p: &mut Parser) { | 423 | pub(crate) fn named_field_list(p: &mut Parser) { |
423 | assert!(p.at(L_CURLY)); | 424 | assert!(p.at(L_CURLY)); |
424 | let m = p.start(); | 425 | let m = p.start(); |
425 | p.bump(); | 426 | p.bump(); |