diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-02-27 19:41:02 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-03-09 19:43:59 -0500 |
| commit | 7cbd4b20ee857cf383ef1c0d8b34727a433231a9 (patch) | |
| tree | 519693f796860294ff1953ff468b5a5c4aa7d462 /src/libsyntax/ext/auto_encode.rs | |
| parent | 98ce99d500b13c79fd8e74e807167d8a59caf0e7 (diff) | |
| download | rust-7cbd4b20ee857cf383ef1c0d8b34727a433231a9.tar.gz rust-7cbd4b20ee857cf383ef1c0d8b34727a433231a9.zip | |
Remove @ast::Region and replace with @ast::Lifetime.
Modify pretty-printer to emit lifetimes and fix a few minor parser bugs that this uncovered.
Diffstat (limited to 'src/libsyntax/ext/auto_encode.rs')
| -rw-r--r-- | src/libsyntax/ext/auto_encode.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libsyntax/ext/auto_encode.rs b/src/libsyntax/ext/auto_encode.rs index 644afaff37c..ecb5be6cc3c 100644 --- a/src/libsyntax/ext/auto_encode.rs +++ b/src/libsyntax/ext/auto_encode.rs @@ -594,10 +594,7 @@ fn mk_ser_method( let ty_s = @ast::Ty { id: cx.next_id(), node: ast::ty_rptr( - @ast::region { - id: cx.next_id(), - node: ast::re_anon, - }, + None, ast::mt { ty: cx.ty_path(span, ~[cx.ident_of(~"__S")], ~[]), mutbl: ast::m_imm @@ -658,10 +655,7 @@ fn mk_deser_method( let ty_d = @ast::Ty { id: cx.next_id(), node: ast::ty_rptr( - @ast::region { - id: cx.next_id(), - node: ast::re_anon, - }, + None, ast::mt { ty: cx.ty_path(span, ~[cx.ident_of(~"__D")], ~[]), mutbl: ast::m_imm |
