@@ -20,7 +20,7 @@ mod tests;
2020
2121// The proc macro code for this is in `compiler/rustc_macros/src/symbols.rs`.
2222symbols ! {
23- // If you modify this list, adjust `is_any_keyword`, `is_special `,
23+ // If you modify this list, adjust `is_any_keyword`, `is_reserved_ident `,
2424 // `is_used_keyword`/`is_unused_keyword` and `AllKeywords`.
2525 // But this should rarely be necessary if the keywords are kept in alphabetic order.
2626 Keywords {
@@ -2587,7 +2587,7 @@ impl Symbol {
25872587 self >= kw:: As && self <= kw:: Yeet
25882588 }
25892589
2590- fn is_special ( self ) -> bool {
2590+ fn is_reserved_ident ( self ) -> bool {
25912591 self == sym:: dollar_crate || self == sym:: underscore
25922592 }
25932593
@@ -2609,7 +2609,7 @@ impl Symbol {
26092609 }
26102610
26112611 pub fn is_reserved ( self , edition : impl Copy + FnOnce ( ) -> Edition ) -> bool {
2612- self . is_special ( )
2612+ self . is_reserved_ident ( )
26132613 || self . is_used_keyword_always ( )
26142614 || self . is_unused_keyword_always ( )
26152615 || self . is_used_keyword_conditional ( edition)
@@ -2649,8 +2649,8 @@ impl Ident {
26492649 }
26502650
26512651 /// Returns `true` for reserved identifiers.
2652- pub fn is_special ( self ) -> bool {
2653- self . name . is_special ( )
2652+ pub fn is_reserved_ident ( self ) -> bool {
2653+ self . name . is_reserved_ident ( )
26542654 }
26552655
26562656 /// Returns `true` if the token is a keyword used in the language.
0 commit comments