Skip to content

Commit f47673a

Browse files
committed
---
yaml --- r: 140161 b: refs/heads/try2 c: 63397b8 h: refs/heads/master i: 140159: 8831bdf v: v3
1 parent b9169a4 commit f47673a

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 2733a1f14b6602f97d225ee8794db46d5d5e9efe
8+
refs/heads/try2: 63397b8519c07a4714830a07368b1b044dbdac4b
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ use core::vec;
9898
enum restriction {
9999
UNRESTRICTED,
100100
RESTRICT_STMT_EXPR,
101-
RESTRICT_NO_CALL_EXPRS,
102101
RESTRICT_NO_BAR_OP,
103102
RESTRICT_NO_BAR_OR_DOUBLEBAR_OP,
104103
}
@@ -1377,10 +1376,6 @@ pub impl Parser {
13771376
self.parse_dot_or_call_expr_with(b)
13781377
}
13791378

1380-
fn permits_call(&self) -> bool {
1381-
return *self.restriction != RESTRICT_NO_CALL_EXPRS;
1382-
}
1383-
13841379
fn parse_dot_or_call_expr_with(&self, e0: @expr) -> @expr {
13851380
let mut e = e0;
13861381
let lo = e.span.lo;
@@ -1401,7 +1396,7 @@ pub impl Parser {
14011396

14021397
// expr.f() method call
14031398
match *self.token {
1404-
token::LPAREN if self.permits_call() => {
1399+
token::LPAREN => {
14051400
let es = self.parse_unspanned_seq(
14061401
&token::LPAREN,
14071402
&token::RPAREN,
@@ -1425,7 +1420,7 @@ pub impl Parser {
14251420
if self.expr_is_complete(e) { break; }
14261421
match *self.token {
14271422
// expr(...)
1428-
token::LPAREN if self.permits_call() => {
1423+
token::LPAREN => {
14291424
let es = self.parse_unspanned_seq(
14301425
&token::LPAREN,
14311426
&token::RPAREN,

0 commit comments

Comments
 (0)