@@ -362,20 +362,17 @@ fn mk_fake_ident_interner() -> ident_interner {
362362/**
363363 * All the valid words that have meaning in the Rust language.
364364 *
365- * Rust keywords are either 'temporary', 'restricted', or 'strict '. Temporary
365+ * Rust keywords are either 'temporary', 'strict' or 'reserved '. Temporary
366366 * keywords are contextual and may be used as identifiers anywhere. They are
367- * expected to disappear from the grammar soon. Restricted keywords may not
368- * appear in positions that might otherwise contain _value identifiers_.
369- * Strict keywords may not appear as identifiers at all .
367+ * expected to disappear from the grammar soon. Strict keywords may not
368+ * appear as identifiers at all. Reserved keywords are not used anywhere in
369+ * the language and may not appear as identifiers.
370370 */
371371fn keyword_table( ) -> HashMap < ~str , ( ) > {
372372 let keywords = str_hash ( ) ;
373373 for temporary_keyword_table( ) . each_key |word| {
374374 keywords. insert( word, ( ) ) ;
375375 }
376- for restricted_keyword_table( ) . each_key |word| {
377- keywords. insert( word, ( ) ) ;
378- }
379376 for strict_keyword_table( ) . each_key |word| {
380377 keywords. insert( word, ( ) ) ;
381378 }
@@ -397,30 +394,6 @@ fn temporary_keyword_table() -> HashMap<~str, ()> {
397394 words
398395}
399396
400- /**
401- * Keywords that may not appear in any position that might otherwise contain a
402- * _value identifier_. Restricted keywords may still be used as other types of
403- * identifiers.
404- *
405- * Reasons:
406- *
407- * * For some (most?), if used at the start of a line, they will cause the
408- * line to be interpreted as a specific kind of statement, which would be
409- * confusing.
410- *
411- * * `true` or `false` as identifiers would always be shadowed by
412- * the boolean constants
413- */
414- fn restricted_keyword_table ( ) -> HashMap < ~str , ( ) > {
415- let words = str_hash ( ) ;
416- let keys = ~[
417- ] ;
418- for keys. each |word| {
419- words. insert ( word, ( ) ) ;
420- }
421- words
422- }
423-
424397/// Full keywords. May not appear anywhere else.
425398fn strict_keyword_table( ) -> HashMap < ~str , ( ) > {
426399 let words = str_hash( ) ;
0 commit comments