Skip to content

Commit d71179f

Browse files
committed
Promote 'fail' to a strict keyword
1 parent 9895360 commit d71179f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libsyntax/parse/token.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ fn temporary_keyword_table() -> HashMap<~str, ()> {
414414
fn restricted_keyword_table() -> HashMap<~str, ()> {
415415
let words = str_hash();
416416
let keys = ~[
417-
~"fail",
418417
~"unsafe"
419418
];
420419
for keys.each |word| {
@@ -432,7 +431,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> {
432431
~"const", ~"copy",
433432
~"do", ~"drop",
434433
~"else", ~"enum", ~"export", ~"extern",
435-
~"false", ~"fn", ~"for",
434+
~"fail", ~"false", ~"fn", ~"for",
436435
~"if", ~"impl",
437436
~"let", ~"log", ~"loop",
438437
~"match", ~"mod", ~"move", ~"mut",

0 commit comments

Comments
 (0)