about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorJames Miller <bladeon@gmail.com>2013-07-06 13:38:56 +1200
committerJames Miller <bladeon@gmail.com>2013-07-07 22:51:10 +1200
commit46a1f54666dbeb9a926c75b380f62571963cbacc (patch)
tree1ef88fa9ef34af53d983b4ef5d4a70792c3ddaba /src/libsyntax/parse/parser.rs
parent97c5a44d3e805652a54a5693bbf2ab6d44db993b (diff)
downloadrust-46a1f54666dbeb9a926c75b380f62571963cbacc.tar.gz
rust-46a1f54666dbeb9a926c75b380f62571963cbacc.zip
De-manage OptVec<TyParamBounds>
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 8f1bffdaa78..4c662cc4621 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -968,7 +968,7 @@ impl Parser {
             || is_ident_or_path(self.token) {
             // NAMED TYPE
             let (path, bounds) = self.parse_type_path();
-            ty_path(path, @bounds, self.get_id())
+            ty_path(path, bounds, self.get_id())
         } else {
             self.fatal(fmt!("expected type, found token %?",
                             *self.token));
@@ -3213,7 +3213,7 @@ impl Parser {
         let ident = self.parse_ident();
         let opt_bounds = self.parse_optional_ty_param_bounds();
         // For typarams we don't care about the difference b/w "<T>" and "<T:>".
-        let bounds = @opt_bounds.get_or_default(opt_vec::Empty);
+        let bounds = opt_bounds.get_or_default(opt_vec::Empty);
         ast::TyParam { ident: ident, id: self.get_id(), bounds: bounds }
     }
 
@@ -3565,7 +3565,7 @@ impl Parser {
         let opt_trait = if could_be_trait && self.eat_keyword(keywords::For) {
             // New-style trait. Reinterpret the type as a trait.
             let opt_trait_ref = match ty.node {
-                ty_path(ref path, @None, node_id) => {
+                ty_path(ref path, None, node_id) => {
                     Some(trait_ref {
                         path: /* bad */ copy *path,
                         ref_id: node_id