mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
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:
commit
4a834b54d4
@ -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…
x
Reference in New Issue
Block a user