about summary refs log tree commit diff
path: root/src/librustsyntax/parse
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-04-05 20:59:36 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-04-05 21:16:28 -0700
commit051f24da25a485f9702590f9c7f5095ebd0fbb58 (patch)
tree6c19e8bf10758325bd92e9798ea933827fb55d64 /src/librustsyntax/parse
parentf1afb0b3e226164f551f3e2fc1270c6dba007281 (diff)
downloadrust-051f24da25a485f9702590f9c7f5095ebd0fbb58.tar.gz
rust-051f24da25a485f9702590f9c7f5095ebd0fbb58.zip
add static region and also fix regions to be contravariant
Diffstat (limited to 'src/librustsyntax/parse')
-rw-r--r--src/librustsyntax/parse/parser.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustsyntax/parse/parser.rs b/src/librustsyntax/parse/parser.rs
index dfd682b9ae9..759ac1a3a95 100644
--- a/src/librustsyntax/parse/parser.rs
+++ b/src/librustsyntax/parse/parser.rs
@@ -434,6 +434,8 @@ fn parse_region(p: parser) -> ast::region {
             p.bump(); p.bump();
             if string == "self" {
                 ast::re_self
+            } else if string == "static" {
+                ast::re_static
             } else {
                 ast::re_named(string)
             }