diff options
| author | Aaron Keen <aaronkeen@gmail.com> | 2015-12-16 11:53:36 +0100 |
|---|---|---|
| committer | Aaron Keen <aaronkeen@gmail.com> | 2015-12-16 11:53:36 +0100 |
| commit | 41cc365af92ff3ed5c165fb575a74428e2608a6e (patch) | |
| tree | 8a0a489ce112d3ca9dcbe41bab991558d1022f7e /src/libsyntax/parse | |
| parent | 35f2fe52c2d4c55236446ebdac11ba44cc3704cd (diff) | |
| download | rust-41cc365af92ff3ed5c165fb575a74428e2608a6e.tar.gz rust-41cc365af92ff3ed5c165fb575a74428e2608a6e.zip | |
Corrected formatting mistakes.
Changed bit manipulation to use supported - (set difference) instead of explicit '& !'.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 6cbdd9f3411..4f4a78e8760 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2814,22 +2814,22 @@ impl<'a> Parser<'a> { let rhs = try!(match op.fixity() { Fixity::Right => self.with_res( - restrictions & !Restrictions::RESTRICTION_STMT_EXPR, - |this|{ + restrictions - Restrictions::RESTRICTION_STMT_EXPR, + |this| { this.parse_assoc_expr_with(op.precedence(), - LhsExpr::NotYetParsed) + LhsExpr::NotYetParsed) }), Fixity::Left => self.with_res( - restrictions & !Restrictions::RESTRICTION_STMT_EXPR, - |this|{ + restrictions - Restrictions::RESTRICTION_STMT_EXPR, + |this| { this.parse_assoc_expr_with(op.precedence() + 1, LhsExpr::NotYetParsed) }), // We currently have no non-associative operators that are not handled above by // the special cases. The code is here only for future convenience. Fixity::None => self.with_res( - restrictions & !Restrictions::RESTRICTION_STMT_EXPR, - |this|{ + restrictions - Restrictions::RESTRICTION_STMT_EXPR, + |this| { this.parse_assoc_expr_with(op.precedence() + 1, LhsExpr::NotYetParsed) }), |
