File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
branches/auto/src/libsyntax/parse Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: 2733a1f14b6602f97d225ee8794db46d5d5e9efe
17
+ refs/heads/auto: 63397b8519c07a4714830a07368b1b044dbdac4b
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ use core::vec;
98
98
enum restriction {
99
99
UNRESTRICTED ,
100
100
RESTRICT_STMT_EXPR ,
101
- RESTRICT_NO_CALL_EXPRS ,
102
101
RESTRICT_NO_BAR_OP ,
103
102
RESTRICT_NO_BAR_OR_DOUBLEBAR_OP ,
104
103
}
@@ -1377,10 +1376,6 @@ pub impl Parser {
1377
1376
self . parse_dot_or_call_expr_with ( b)
1378
1377
}
1379
1378
1380
- fn permits_call ( & self ) -> bool {
1381
- return * self . restriction != RESTRICT_NO_CALL_EXPRS ;
1382
- }
1383
-
1384
1379
fn parse_dot_or_call_expr_with ( & self , e0 : @expr) -> @expr {
1385
1380
let mut e = e0 ;
1386
1381
let lo = e. span . lo ;
@@ -1401,7 +1396,7 @@ pub impl Parser {
1401
1396
1402
1397
// expr.f() method call
1403
1398
match * self . token {
1404
- token:: LPAREN if self . permits_call ( ) => {
1399
+ token:: LPAREN => {
1405
1400
let es = self . parse_unspanned_seq (
1406
1401
& token:: LPAREN ,
1407
1402
& token:: RPAREN ,
@@ -1425,7 +1420,7 @@ pub impl Parser {
1425
1420
if self . expr_is_complete ( e) { break ; }
1426
1421
match * self . token {
1427
1422
// expr(...)
1428
- token:: LPAREN if self . permits_call ( ) => {
1423
+ token:: LPAREN => {
1429
1424
let es = self . parse_unspanned_seq (
1430
1425
& token:: LPAREN ,
1431
1426
& token:: RPAREN ,
You can’t perform that action at this time.
0 commit comments