Skip to content

Commit 5343eb7

Browse files
committed
Add comments for the token table
1 parent 024df5c commit 5343eb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libsyntax/parse/token.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@ macro_rules! declare_special_idents_and_keywords {(
423423
static SELF_KEYWORD_NAME: Name = 1;
424424
static STATIC_KEYWORD_NAME: Name = 2;
425425

426+
// NB: leaving holes in the ident table is bad! a different ident will get
427+
// interned with the id from the hole, but it will be between the min and max
428+
// of the reserved words, and thus tagged as "reserved".
429+
426430
declare_special_idents_and_keywords! {
427431
pub mod special_idents {
428432
// These ones are statics

0 commit comments

Comments
 (0)