File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed 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