syntax: Make _ an identifier
This commit is contained in:
parent
61b6bf54fd
commit
5d06c890fe
20 changed files with 109 additions and 119 deletions
|
|
@ -214,7 +214,7 @@ impl LifetimeName {
|
|||
use self::LifetimeName::*;
|
||||
match *self {
|
||||
Implicit => keywords::Invalid.name(),
|
||||
Underscore => Symbol::intern("'_"),
|
||||
Underscore => keywords::UnderscoreLifetime.name(),
|
||||
Static => keywords::StaticLifetime.name(),
|
||||
Name(name) => name,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -287,7 +287,6 @@ fn hash_token<'a, 'gcx, W: StableHasherResult>(
|
|||
token::Token::Pound |
|
||||
token::Token::Dollar |
|
||||
token::Token::Question |
|
||||
token::Token::Underscore |
|
||||
token::Token::Whitespace |
|
||||
token::Token::Comment |
|
||||
token::Token::Eof => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue