Rollup merge of #146311 - nnethercote:symbol-comments, r=petrochenkov

Minor symbol comment fixes.

- The empty symbol is no longer a keyword.
- I don't think any of the special reserved identifiers are used for error recovery.

r? ```@petrochenkov```
This commit is contained in:
Matthias Krüger 2025-09-10 20:29:06 +02:00 committed by GitHub
commit 4a834b54d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,18 +21,17 @@ mod tests;
// The proc macro code for this is in `compiler/rustc_macros/src/symbols.rs`.
symbols! {
// This list includes things that are definitely keywords (e.g. `if`),
// a few things that are definitely not keywords (e.g. the empty symbol,
// `{{root}}`) and things where there is disagreement between people and/or
// documents (such as the Rust Reference) about whether it is a keyword
// (e.g. `_`).
// This list includes things that are definitely keywords (e.g. `if`), a
// few things that are definitely not keywords (e.g. `{{root}}`) and things
// where there is disagreement between people and/or documents (such as the
// Rust Reference) about whether it is a keyword (e.g. `_`).
//
// If you modify this list, adjust any relevant `Symbol::{is,can_be}_*`
// predicates and `used_keywords`. Also consider adding new keywords to the
// `ui/parser/raw/raw-idents.rs` test.
Keywords {
// Special reserved identifiers used internally for elided lifetimes,
// unnamed method parameters, crate root module, error recovery etc.
// Special reserved identifiers used internally for unnamed method
// parameters, crate root module, etc.
// Matching predicates: `is_special`/`is_reserved`
//
// tidy-alphabetical-start