Skip to content

Commit 58c82a8

Browse files
committed
Remove support for @/~-style type param kind annotation
Issue #1067
1 parent 8e7f4a3 commit 58c82a8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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)