Skip to content

Commit ba9b7cd

Browse files
committed
---
yaml --- r: 56496 b: refs/heads/auto c: 63397b8 h: refs/heads/master v: v3
1 parent 17d36fd commit ba9b7cd

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
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 2733a1f14b6602f97d225ee8794db46d5d5e9efe
17+
refs/heads/auto: 63397b8519c07a4714830a07368b1b044dbdac4b
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/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)