about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-08-13 12:17:42 -0500
committerMichael Sullivan <sully@msully.net>2012-08-14 17:40:04 -0700
commite640a66eb494d991e570f9827e7b00122ea538b0 (patch)
tree08f1842c77d3f1219d98340158a36a35bda861e7 /src/libsyntax/parse/parser.rs
parent4c16ff516d97bb4a69ad965b93e6db61343be381 (diff)
downloadrust-e640a66eb494d991e570f9827e7b00122ea538b0.tar.gz
rust-e640a66eb494d991e570f9827e7b00122ea538b0.zip
Make most forms of explicit self work. By-value not implemented. Work on #2585.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index dd6e9f85312..feb19d6780c 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2300,29 +2300,7 @@ class parser {
                     self.bump();
                     let mutability = self.parse_mutability();
                     self.expect_self_ident();
-
-                    // Parse an explicit region, if possible.
-                    let region_name;
-                    match copy self.token {
-                        token::BINOP(token::SLASH) => {
-                            self.bump();
-                            match copy self.token {
-                                token::IDENT(sid, false) => {
-                                    self.bump();
-                                    region_name = some(self.get_str(sid));
-                                }
-                                _ => {
-                                    region_name = none;
-                                }
-                            }
-                        }
-                        _ => {
-                            region_name = none;
-                        }
-                    }
-
-                    let region = self.region_from_name(region_name);
-                    self_ty = sty_region(region, mutability);
+                    self_ty = sty_region(mutability);
                 } else {
                     self_ty = sty_by_ref;
                 }