diff options
| author | John Clements <clements@racket-lang.org> | 2013-09-05 14:14:31 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-09-06 13:35:06 -0700 |
| commit | 72ee6af4d4e4d16a81e3f518f9c75f513a9a7dea (patch) | |
| tree | f3511f227d1918b82abc721f8bb8598199361f1c /src/libsyntax/parse | |
| parent | 9ec1623d57f48b02ca1c96930f5ee6fdc7d2c609 (diff) | |
| download | rust-72ee6af4d4e4d16a81e3f518f9c75f513a9a7dea.tar.gz rust-72ee6af4d4e4d16a81e3f518f9c75f513a9a7dea.zip | |
compare macro tokens hygienically (commented out)
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 51c5522ae2f..62abe3850c9 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3518,7 +3518,10 @@ impl Parser { } fn is_self_ident(&self) -> bool { - *self.token == token::IDENT(special_idents::self_, false) + match *self.token { + token::IDENT(id, false) => id.name == special_idents::self_.name, + _ => false + } } fn expect_self_ident(&self) { |
