Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar.rs')
-rw-r--r--crates/parser/src/grammar.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs
index f15272ce87..4c6106f18a 100644
--- a/crates/parser/src/grammar.rs
+++ b/crates/parser/src/grammar.rs
@@ -61,6 +61,10 @@ pub(crate) mod entry {
pub(crate) fn stmt(p: &mut Parser) {
expressions::stmt(p, expressions::StmtWithSemi::No, true);
}
+
+ pub(crate) fn pat(p: &mut Parser) {
+ patterns::pattern_single(p);
+ }
}
}
@@ -76,8 +80,6 @@ pub(crate) mod entry_points {
pub(crate) use paths::type_path as path;
- pub(crate) use patterns::pattern_single as pattern;
-
pub(crate) use types::type_;
pub(crate) fn expr(p: &mut Parser) {