Skip to content

Commit bfe747b

Browse files
bstriebrson
authored andcommitted
---
yaml --- r: 36031 b: refs/heads/try2 c: 614624a h: refs/heads/master i: 36029: 7a52b12 36027: 94d186f 36023: f45bab5 36015: 2c609df 35999: 406751d 35967: c602622 v: v3
1 parent 0f275d9 commit bfe747b

File tree

2 files changed

+2
-39
lines changed

2 files changed

+2
-39
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: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 684d945ab78d6779c198dcb4a340b2269b0fb8aa
8+
refs/heads/try2: 614624a34c7917c76927163ca3d82eef01e1c369
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

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

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,7 @@ impl Parser {
554554

555555
let sp = mk_sp(lo, self.last_span.hi);
556556
return @{id: self.get_id(),
557-
node: match self.maybe_parse_fixed_vstore() {
558-
// Consider a fixed vstore suffix (/N or /_)
559-
None => t,
560-
Some(v) => {
561-
ty_fixed_length(@{id: self.get_id(), node:t, span: sp}, v)
562-
} },
557+
node: t,
563558
span: sp}
564559
}
565560

@@ -691,23 +686,6 @@ impl Parser {
691686
}
692687
}
693688

694-
fn maybe_parse_fixed_vstore() -> Option<Option<uint>> {
695-
if self.token == token::BINOP(token::SLASH) {
696-
self.bump();
697-
match copy self.token {
698-
token::UNDERSCORE => {
699-
self.bump(); Some(None)
700-
}
701-
token::LIT_INT_UNSUFFIXED(i) if i >= 0i64 => {
702-
self.bump(); Some(Some(i as uint))
703-
}
704-
_ => None
705-
}
706-
} else {
707-
None
708-
}
709-
}
710-
711689
fn maybe_parse_fixed_vstore_with_star() -> Option<Option<uint>> {
712690
if self.eat(token::BINOP(token::STAR)) {
713691
match copy self.token {
@@ -1083,21 +1061,6 @@ impl Parser {
10831061
ex = expr_lit(@lit);
10841062
}
10851063

1086-
// Vstore is legal following expr_lit(lit_str(...)) and expr_vec(...)
1087-
// only.
1088-
match ex {
1089-
expr_lit(@{node: lit_str(_), span: _}) |
1090-
expr_vec(_, _) => match self.maybe_parse_fixed_vstore() {
1091-
None => (),
1092-
Some(v) => {
1093-
hi = self.span.hi;
1094-
ex = expr_vstore(self.mk_expr(lo, hi, ex),
1095-
expr_vstore_fixed(v));
1096-
}
1097-
},
1098-
_ => ()
1099-
}
1100-
11011064
return self.mk_pexpr(lo, hi, ex);
11021065
}
11031066

0 commit comments

Comments
 (0)