Skip to content

Commit 41cc365

Browse files
committed
Corrected formatting mistakes.
Changed bit manipulation to use supported - (set difference) instead of explicit '& !'.
1 parent 35f2fe5 commit 41cc365

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,22 +2814,22 @@ impl<'a> Parser<'a> {
28142814

28152815
let rhs = try!(match op.fixity() {
28162816
Fixity::Right => self.with_res(
2817-
restrictions & !Restrictions::RESTRICTION_STMT_EXPR,
2818-
|this|{
2817+
restrictions - Restrictions::RESTRICTION_STMT_EXPR,
2818+
|this| {
28192819
this.parse_assoc_expr_with(op.precedence(),
2820-
LhsExpr::NotYetParsed)
2820+
LhsExpr::NotYetParsed)
28212821
}),
28222822
Fixity::Left => self.with_res(
2823-
restrictions & !Restrictions::RESTRICTION_STMT_EXPR,
2824-
|this|{
2823+
restrictions - Restrictions::RESTRICTION_STMT_EXPR,
2824+
|this| {
28252825
this.parse_assoc_expr_with(op.precedence() + 1,
28262826
LhsExpr::NotYetParsed)
28272827
}),
28282828
// We currently have no non-associative operators that are not handled above by
28292829
// the special cases. The code is here only for future convenience.
28302830
Fixity::None => self.with_res(
2831-
restrictions & !Restrictions::RESTRICTION_STMT_EXPR,
2832-
|this|{
2831+
restrictions - Restrictions::RESTRICTION_STMT_EXPR,
2832+
|this| {
28332833
this.parse_assoc_expr_with(op.precedence() + 1,
28342834
LhsExpr::NotYetParsed)
28352835
}),

0 commit comments

Comments
 (0)