add static region and also fix regions to be contravariant

This commit is contained in:
Niko Matsakis
2012-04-05 20:59:36 -07:00
parent f1afb0b3e2
commit 051f24da25
12 changed files with 146 additions and 72 deletions

View File

@@ -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)
}