Skip to content

Commit 2156fa3

Browse files
Rollup merge of rust-lang#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``
2 parents 7ad23f4 + 380c906 commit 2156fa3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

compiler/rustc_span/src/symbol.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,17 @@ mod tests;
2121

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

0 commit comments

Comments
 (0)