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 4c6106f18a..539dc19b51 100644
--- a/crates/parser/src/grammar.rs
+++ b/crates/parser/src/grammar.rs
@@ -65,6 +65,10 @@ pub(crate) mod entry {
pub(crate) fn pat(p: &mut Parser) {
patterns::pattern_single(p);
}
+
+ pub(crate) fn ty(p: &mut Parser) {
+ types::type_(p);
+ }
}
}
@@ -80,8 +84,6 @@ pub(crate) mod entry_points {
pub(crate) use paths::type_path as path;
- pub(crate) use types::type_;
-
pub(crate) fn expr(p: &mut Parser) {
let _ = expressions::expr(p);
}