compare macro tokens hygienically (commented out)
This commit is contained in:
parent
9ec1623d57
commit
72ee6af4d4
2 changed files with 19 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue