File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
branches/try2/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 @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 2733a1f14b6602f97d225ee8794db46d5d5e9efe
8
+ refs/heads/try2: 63397b8519c07a4714830a07368b1b044dbdac4b
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
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