Skip to content

Commit 63c4753

Browse files
committed
---
yaml --- r: 31704 b: refs/heads/dist-snap c: 92ef17a h: refs/heads/master v: v3
1 parent 13e3220 commit 63c4753

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: 2772b2e5c7f85e230bcae13c49eb1386afc6cd0e
10+
refs/heads/dist-snap: 92ef17aaebb28a8fe6579f669a3ee162c931d9dd
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,8 @@ class parser {
24362436
!self.token_is_keyword(~"of", self.look_ahead(1)) &&
24372437
!self.token_is_keyword(~"for", self.look_ahead(1)) &&
24382438
self.look_ahead(1) != token::BINOP(token::SLASH) &&
2439-
self.look_ahead(1) != token::LT {
2439+
(self.look_ahead(1) != token::LT
2440+
|| (self.look_ahead(1) == token::LT && tps.is_not_empty())) {
24402441
24412442
// This is a new-style impl declaration.
24422443
ident = @~"__extensions__"; // XXX: clownshoes
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
enum option_<T> {
2+
none_,
3+
some_(T),
4+
}
5+
6+
impl<T> option_<T> {
7+
fn foo() -> bool { true }
8+
}
9+
10+
enum option__ {
11+
none__,
12+
some__(int)
13+
}
14+
15+
impl option__ {
16+
fn foo() -> bool { true }
17+
}
18+
19+
fn main() {
20+
}

0 commit comments

Comments
 (0)