File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
branches/auto/src/libsyntax/parse Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
13
13
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
14
14
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
15
15
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16
- refs/heads/auto: 99293b16e46a14e4fb49ab2ebd02a521634c2b44
16
+ refs/heads/auto: 3863b68df490dab6bcaccef39039382d47ffb226
17
17
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
18
18
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
19
19
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change @@ -2692,15 +2692,16 @@ impl<'a> Parser<'a> {
2692
2692
pub fn parse_assign_expr ( & mut self ) -> P < Expr > {
2693
2693
let lo = self . span . lo ;
2694
2694
let lhs = self . parse_binops ( ) ;
2695
+ let restrictions = self . restrictions & RestrictionNoStructLiteral ;
2695
2696
match self . token {
2696
2697
token:: EQ => {
2697
2698
self . bump ( ) ;
2698
- let rhs = self . parse_expr ( ) ;
2699
+ let rhs = self . parse_expr_res ( restrictions ) ;
2699
2700
self . mk_expr ( lo, rhs. span . hi , ExprAssign ( lhs, rhs) )
2700
2701
}
2701
2702
token:: BINOPEQ ( op) => {
2702
2703
self . bump ( ) ;
2703
- let rhs = self . parse_expr ( ) ;
2704
+ let rhs = self . parse_expr_res ( restrictions ) ;
2704
2705
let aop = match op {
2705
2706
token:: PLUS => BiAdd ,
2706
2707
token:: MINUS => BiSub ,
You can’t perform that action at this time.
0 commit comments