Skip to content

Commit 7c26249

Browse files
committed
---
yaml --- r: 5958 b: refs/heads/master c: 58c82a8 h: refs/heads/master v: v3
1 parent a4a3580 commit 7c26249

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8e7f4a3760706359f0f867c3ed1f5c7eb705e556
2+
refs/heads/master: 58c82a8da2b16878766b5dc630f7499166cceb21

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,16 +1735,9 @@ fn parse_block_tail(p: parser, lo: uint, s: ast::blk_check_mode) -> ast::blk {
17351735
}
17361736

17371737
fn parse_ty_param(p: parser) -> ast::ty_param {
1738-
let k =
1739-
alt p.peek() {
1740-
token::TILDE. { p.bump(); ast::kind_unique }
1741-
token::AT. { p.bump(); ast::kind_shared }
1742-
_ {
1743-
if eat_word(p, "pinned") { ast::kind_pinned }
1738+
let k = if eat_word(p, "pinned") { ast::kind_pinned }
17441739
else if eat_word(p, "unique") { ast::kind_unique }
1745-
else { ast::kind_shared }
1746-
}
1747-
};
1740+
else { ast::kind_shared };
17481741
ret {ident: parse_ident(p), kind: k};
17491742
}
17501743

0 commit comments

Comments
 (0)