]> git.lizzy.rs Git - rust.git/blobdiff - crates/parser/src/grammar.rs
move ty
[rust.git] / crates / parser / src / grammar.rs
index 4c6106f18a8232d9c41d785354494f7ae4795e6f..539dc19b517e08f780ea2dbf20d220268b5bc20f 100644 (file)
@@ -65,6 +65,10 @@ pub(crate) fn stmt(p: &mut Parser) {
         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) fn source_file(p: &mut Parser) {
 
     pub(crate) use paths::type_path as path;
 
-    pub(crate) use types::type_;
-
     pub(crate) fn expr(p: &mut Parser) {
         let _ = expressions::expr(p);
     }