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/visit.rs | |
| 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/visit.rs')
| -rw-r--r-- | src/libsyntax/visit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index 4ab064a88b7..df34ff30db6 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -202,8 +202,8 @@ pub fn walk_explicit_self<E: Clone, V: Visitor<E>>(visitor: &mut V, explicit_self: &ExplicitSelf, env: E) { match explicit_self.node { - SelfStatic | SelfValue | SelfUniq => {} - SelfRegion(ref lifetime, _) => { + SelfStatic | SelfValue(_) | SelfUniq(_) => {}, + SelfRegion(ref lifetime, _, _) => { visitor.visit_opt_lifetime_ref(explicit_self.span, lifetime, env) } } |
