1
Fork 0

compare macro tokens hygienically (commented out)

This commit is contained in:
John Clements 2013-09-05 14:14:31 -07:00
parent 9ec1623d57
commit 72ee6af4d4
2 changed files with 19 additions and 2 deletions

View file

@ -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) {