diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-12-14 10:48:41 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-12-14 10:48:41 +0100 |
| commit | 3d052c920bc6ee6f5f0575f76980f0f69327662f (patch) | |
| tree | d319594c516bde73dc13e0ce1b3b2a43a116e39b /src/libsyntax/parse | |
| parent | 37a3b7c80e3ceb31aa73640506501cca4b973647 (diff) | |
| download | rust-3d052c920bc6ee6f5f0575f76980f0f69327662f.tar.gz rust-3d052c920bc6ee6f5f0575f76980f0f69327662f.zip | |
format: inline one-liners related to parse_expr
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index ded6da9f3ad..071d18945c5 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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>> { @@ -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) } @@ -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>> { |
