about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-13 15:34:16 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-13 17:10:01 -0700
commitd71179f410dba7b6f017d93d58c740a5f0d20e2b (patch)
treeeb60f708986faaf234d54e93551e625761400a67 /src/libsyntax/parse
parent989536083df487019520f93828f244356e2b057d (diff)
downloadrust-d71179f410dba7b6f017d93d58c740a5f0d20e2b.tar.gz
rust-d71179f410dba7b6f017d93d58c740a5f0d20e2b.zip
Promote 'fail' to a strict keyword
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 9786d2141f0..0c4daf0a6e5 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -414,7 +414,6 @@ fn temporary_keyword_table() -> HashMap<~str, ()> {
 fn restricted_keyword_table() -> HashMap<~str, ()> {
     let words = str_hash();
     let keys = ~[
-        ~"fail",
         ~"unsafe"
     ];
     for keys.each |word| {
@@ -432,7 +431,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> {
         ~"const", ~"copy",
         ~"do", ~"drop",
         ~"else", ~"enum", ~"export", ~"extern",
-        ~"false", ~"fn", ~"for",
+        ~"fail", ~"false", ~"fn", ~"for",
         ~"if", ~"impl",
         ~"let", ~"log", ~"loop",
         ~"match", ~"mod", ~"move", ~"mut",