Have parser recognize static, self region.

Fixes a bug in methods that &self couldn't be referenced in the
body. Also fixes #2479.
This commit is contained in:
Niko Matsakis
2012-09-14 15:20:09 -07:00
parent 34cece99cc
commit 7107b4eff5
7 changed files with 92 additions and 59 deletions

View File

@@ -1047,7 +1047,12 @@ impl prim_ty : cmp::Eq {
type region = {id: node_id, node: region_};
#[auto_serialize]
enum region_ { re_anon, re_named(ident) }
enum region_ {
re_anon,
re_static,
re_self,
re_named(ident)
}
#[auto_serialize]
enum ty_ {