Skip to content

Commit 54d94fe

Browse files
committed
---
yaml --- r: 28411 b: refs/heads/try c: 528373b h: refs/heads/master i: 28409: 41c9b2b 28407: 5309e34 v: v3
1 parent b503d7e commit 54d94fe

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-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: f53c2948aa6bd0ffc47527e977cb278d48467a75
5+
refs/heads/try: 528373b79b63ef9104325bb71cfcf39752352b80
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: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,7 @@ fn keyword_table() -> hashmap<~str, ()> {
382382
fn contextual_keyword_table() -> hashmap<~str, ()> {
383383
let words = str_hash();
384384
let keys = ~[
385-
~"as",
386-
~"else",
387-
~"move",
388-
~"priv", ~"pub",
389385
~"self", ~"static",
390-
~"use"
391386
];
392387
for keys.each |word| {
393388
words.insert(word, ());
@@ -412,6 +407,7 @@ fn contextual_keyword_table() -> hashmap<~str, ()> {
412407
fn restricted_keyword_table() -> hashmap<~str, ()> {
413408
let words = str_hash();
414409
let keys = ~[
410+
~"as",
415411
~"assert",
416412
~"break",
417413
~"const", ~"copy",
@@ -421,11 +417,11 @@ fn restricted_keyword_table() -> hashmap<~str, ()> {
421417
~"if", ~"impl", ~"import",
422418
~"let", ~"log", ~"loop",
423419
~"match", ~"mod", ~"move", ~"mut",
424-
~"pure",
420+
~"priv", ~"pub", ~"pure",
425421
~"ref", ~"return",
426422
~"struct",
427423
~"true", ~"trait", ~"type",
428-
~"unchecked", ~"unsafe",
424+
~"unchecked", ~"unsafe", ~"use",
429425
~"while"
430426
];
431427
for keys.each |word| {

0 commit comments

Comments
 (0)