Make parse_expr_res public

This commit is contained in:
Keegan McAllister 2014-06-23 17:50:40 -07:00 committed by Alex Crichton
parent 26b2fa052f
commit 5ccf056a02
1 changed files with 1 additions and 1 deletions

View File

@ -2721,7 +2721,7 @@ impl<'a> Parser<'a> {
}
// 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();