diff options
| author | John Clements <clements@racket-lang.org> | 2014-07-06 15:10:57 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2014-07-08 16:28:21 -0700 |
| commit | 19e718b34def6c3f98372a40352ab9c889ff9f7a (patch) | |
| tree | 7fded5374fe2a5baa57fb3422ba8a4fccb0685ca /src/libsyntax/print | |
| parent | 69c27546ee37ac2d0384748a21c7dad00642a223 (diff) | |
| download | rust-19e718b34def6c3f98372a40352ab9c889ff9f7a.tar.gz rust-19e718b34def6c3f98372a40352ab9c889ff9f7a.zip | |
carry self ident forward through re-parsing
formerly, the self identifier was being discarded during parsing, which stymies hygiene. The best fix here seems to be to attach a self identifier to ExplicitSelf_, a change that rippled through the rest of the compiler, but without any obvious damage.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index e695241472b..a5d70a9333d 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1967,13 +1967,13 @@ impl<'a> State<'a> { try!(self.print_mutability(mutbl)); match explicit_self { ast::SelfStatic => { return Ok(false); } - ast::SelfValue => { + ast::SelfValue(_) => { try!(word(&mut self.s, "self")); } - ast::SelfUniq => { + ast::SelfUniq(_) => { try!(word(&mut self.s, "~self")); } - ast::SelfRegion(ref lt, m) => { + ast::SelfRegion(ref lt, m, _) => { try!(word(&mut self.s, "&")); try!(self.print_opt_lifetime(lt)); try!(self.print_mutability(m)); |
