Skip to content

Commit

Permalink
format: inline one-liners related to parse_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Dec 14, 2018
1 parent 37a3b7c commit 3d052c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libsyntax/parse/parser.rs
Expand Up @@ -3051,6 +3051,7 @@ impl<'a> Parser<'a> {
///
/// This parses an expression accounting for associativity and precedence of the operators in
/// the expression.
#[inline]
fn parse_assoc_expr(&mut self,
already_parsed_attrs: Option<ThinVec<Attribute>>)
-> PResult<'a, P<Expr>> {
Expand Down Expand Up @@ -3711,6 +3712,7 @@ impl<'a> Parser<'a> {
}

/// Parse an expression
#[inline]
pub fn parse_expr(&mut self) -> PResult<'a, P<Expr>> {
self.parse_expr_res(Restrictions::empty(), None)
}
Expand All @@ -3730,6 +3732,7 @@ impl<'a> Parser<'a> {
}

/// Parse an expression, subject to the given restrictions
#[inline]
fn parse_expr_res(&mut self, r: Restrictions,
already_parsed_attrs: Option<ThinVec<Attribute>>)
-> PResult<'a, P<Expr>> {
Expand Down

0 comments on commit 3d052c9

Please sign in to comment.