From 051f24da25a485f9702590f9c7f5095ebd0fbb58 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 5 Apr 2012 20:59:36 -0700 Subject: add static region and also fix regions to be contravariant --- src/librustsyntax/parse/parser.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/librustsyntax/parse') 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) } -- cgit 1.4.1-3-g733a5