]> git.lizzy.rs Git - rust.git/commitdiff
format: inline one-liners related to parse_expr
authorljedrz <ljedrz@gmail.com>
Fri, 14 Dec 2018 09:48:41 +0000 (10:48 +0100)
committerljedrz <ljedrz@gmail.com>
Fri, 14 Dec 2018 09:48:41 +0000 (10:48 +0100)
src/libsyntax/parse/parser.rs

index ded6da9f3adb8845e00a132e043b1731c613aba7..071d18945c5d8597caecbb189df9d3889a288a38 100644 (file)
@@ -3051,6 +3051,7 @@ fn parse_prefix_expr(&mut self,
     ///
     /// 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>> {
@@ -3711,6 +3712,7 @@ fn parse_match_expr(&mut self, mut attrs: ThinVec<Attribute>) -> PResult<'a, P<E
     }
 
     /// Parse an expression
+    #[inline]
     pub fn parse_expr(&mut self) -> PResult<'a, P<Expr>> {
         self.parse_expr_res(Restrictions::empty(), None)
     }
@@ -3730,6 +3732,7 @@ fn with_res<F, T>(&mut self, r: Restrictions, f: F) -> T
     }
 
     /// 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>> {