Skip to content

Commit 400305f

Browse files
committed
---
yaml --- r: 32495 b: refs/heads/dist-snap c: 528373b h: refs/heads/master i: 32493: 231f7c8 32491: 1244b99 32487: f4184b1 32479: 8615bd1 v: v3
1 parent cee2706 commit 400305f

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
@@ -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: f53c2948aa6bd0ffc47527e977cb278d48467a75
10+
refs/heads/dist-snap: 528373b79b63ef9104325bb71cfcf39752352b80
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/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)