From be1fdf983f83fe9d0d28aabf844cbf8be9af6e9a Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 11 Sep 2012 19:28:14 -0700 Subject: Promote 'impl' from restricted keyword to strict --- src/libsyntax/parse/token.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 3e5abe557e2..1beabe81bb4 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -416,7 +416,6 @@ fn restricted_keyword_table() -> HashMap<~str, ()> { let keys = ~[ ~"const", ~"copy", ~"fail", ~"fn", - ~"impl", ~"unsafe" ]; for keys.each |word| { @@ -434,7 +433,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> { ~"do", ~"drop", ~"else", ~"enum", ~"export", ~"extern", ~"false", ~"for", - ~"if", + ~"if", ~"impl", ~"let", ~"log", ~"loop", ~"match", ~"mod", ~"move", ~"mut", ~"priv", ~"pub", ~"pure", -- cgit 1.4.1-3-g733a5