about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-10-25 15:50:45 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-10-25 15:50:45 +0200
commit58c82a8da2b16878766b5dc630f7499166cceb21 (patch)
treebf9e91c7f985f04b85c1c875acde89d57f379a90 /src/comp/syntax/parse
parent8e7f4a3760706359f0f867c3ed1f5c7eb705e556 (diff)
downloadrust-58c82a8da2b16878766b5dc630f7499166cceb21.tar.gz
rust-58c82a8da2b16878766b5dc630f7499166cceb21.zip
Remove support for @/~-style type param kind annotation
Issue #1067
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 9f478f7969f..7c9ad1fae1c 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1735,16 +1735,9 @@ fn parse_block_tail(p: parser, lo: uint, s: ast::blk_check_mode) -> ast::blk {
 }
 
 fn parse_ty_param(p: parser) -> ast::ty_param {
-    let k =
-        alt p.peek() {
-          token::TILDE. { p.bump(); ast::kind_unique }
-          token::AT. { p.bump(); ast::kind_shared }
-          _ {
-            if eat_word(p, "pinned") { ast::kind_pinned }
+    let k = if eat_word(p, "pinned") { ast::kind_pinned }
             else if eat_word(p, "unique") { ast::kind_unique }
-            else { ast::kind_shared }
-          }
-        };
+            else { ast::kind_shared };
     ret {ident: parse_ident(p), kind: k};
 }