Skip to content

Commit 13ef407

Browse files
committed
---
yaml --- r: 28479 b: refs/heads/try c: 3057790 h: refs/heads/master i: 28477: d5df386 28475: 0471bd0 28471: b8a8fd7 28463: 379adc0 28447: 048469f 28415: 8e18978 v: v3
1 parent 9a83c47 commit 13ef407

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
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 287114a3b9ecc2062482271fabe608d8df0f0aa1
5+
refs/heads/try: 3057790f4b2b7041f187734040e856d02104ff2e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/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)