]> git.lizzy.rs Git - rust.git/commitdiff
Make parse_expr_res public
authorKeegan McAllister <kmcallister@mozilla.com>
Tue, 24 Jun 2014 00:50:40 +0000 (17:50 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 25 Jun 2014 00:23:21 +0000 (17:23 -0700)
src/libsyntax/parse/parser.rs

index e1319304e04e9af02045d047a52e20d15645b8b4..1cb09bb8d890ea85712b17f27572ab6a339f4cee 100644 (file)
@@ -2721,7 +2721,7 @@ pub fn parse_expr(&mut self) -> Gc<Expr> {
     }
 
     // parse an expression, subject to the given restriction
-    fn parse_expr_res(&mut self, r: restriction) -> Gc<Expr> {
+    pub fn parse_expr_res(&mut self, r: restriction) -> Gc<Expr> {
         let old = self.restriction;
         self.restriction = r;
         let e = self.parse_assign_expr();