Skip to content

Commit efbfde3

Browse files
committed
---
yaml --- r: 32563 b: refs/heads/dist-snap c: 3057790 h: refs/heads/master i: 32561: a83e0a7 32559: d78c443 v: v3
1 parent 5a34cd3 commit efbfde3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: 287114a3b9ecc2062482271fabe608d8df0f0aa1
10+
refs/heads/dist-snap: 3057790f4b2b7041f187734040e856d02104ff2e
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libsyntax/parse/token.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,15 @@ 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 'contextual', 'restricted', or 'strict'.
366-
* Contextual keywords may be used as identifiers because their appearance in
367-
* the grammar is unambiguous. Restricted keywords may not appear in positions
368-
* that might otherwise contain _value identifiers_. Strict keywords may not
369-
* appear as identifiers.
365+
* Rust keywords are either 'temporary', 'restricted', or 'strict'. Temporary
366+
* 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.
370370
*/
371371
fn keyword_table() -> HashMap<~str, ()> {
372372
let keywords = str_hash();
373-
for contextual_keyword_table().each_key |word| {
373+
for temporary_keyword_table().each_key |word| {
374374
keywords.insert(word, ());
375375
}
376376
for restricted_keyword_table().each_key |word| {
@@ -386,7 +386,7 @@ fn keyword_table() -> HashMap<~str, ()> {
386386
}
387387

388388
/// Keywords that may be used as identifiers
389-
fn contextual_keyword_table() -> HashMap<~str, ()> {
389+
fn temporary_keyword_table() -> HashMap<~str, ()> {
390390
let words = str_hash();
391391
let keys = ~[
392392
~"self", ~"static",

0 commit comments

Comments
 (0)