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.
This commit is contained in:
parent
55b9b4d1e1
commit
380c906beb
1 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue