diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-11 19:28:14 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-11 19:28:44 -0700 |
| commit | be1fdf983f83fe9d0d28aabf844cbf8be9af6e9a (patch) | |
| tree | 4cff9909111d9605499895ca3642257070cfd4ca /src/libsyntax/parse | |
| parent | 3d2a74a160c5772efccda711e60c173077099ef2 (diff) | |
| download | rust-be1fdf983f83fe9d0d28aabf844cbf8be9af6e9a.tar.gz rust-be1fdf983f83fe9d0d28aabf844cbf8be9af6e9a.zip | |
Promote 'impl' from restricted keyword to strict
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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", |
