Rename ast::TokenKind::Not
as ast::TokenKind::Bang
.
For consistency with `rustc_lexer::TokenKind::Bang`, and because other `ast::TokenKind` variants generally have syntactic names instead of semantic names (e.g. `Star` and `DotDot` instead of `Mul` and `Range`).
This commit is contained in:
parent
2a1e2e9632
commit
53167c0b7f
20 changed files with 48 additions and 48 deletions
|
@ -176,7 +176,7 @@ impl<'a> Parser<'a> {
|
|||
let stmt = self.collect_tokens(None, attrs, ForceCollect::No, |this, attrs| {
|
||||
let path = this.parse_path(PathStyle::Expr)?;
|
||||
|
||||
if this.eat(exp!(Not)) {
|
||||
if this.eat(exp!(Bang)) {
|
||||
let stmt_mac = this.parse_stmt_mac(lo, attrs, path)?;
|
||||
return Ok((
|
||||
stmt_mac,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue