diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-12-20 14:04:25 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-03 09:26:13 +1100 |
| commit | 53167c0b7f8112a492b9442058a034605a120c9e (patch) | |
| tree | 15877b1e7c7a474f59cd9040cf961483435e1fad /compiler/rustc_parse/src/parser/stmt.rs | |
| parent | 2a1e2e9632af4098aea3136fc80e165284deb927 (diff) | |
| download | rust-53167c0b7f8112a492b9442058a034605a120c9e.tar.gz rust-53167c0b7f8112a492b9442058a034605a120c9e.zip | |
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`).
Diffstat (limited to 'compiler/rustc_parse/src/parser/stmt.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/stmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs index 5e4034e0f4b..3a9dc5ce798 100644 --- a/compiler/rustc_parse/src/parser/stmt.rs +++ b/compiler/rustc_parse/src/parser/stmt.rs @@ -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, |
