diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-19 11:03:34 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-19 11:44:05 -0700 |
| commit | 76f8cfb26c7aa38cf066c42ea500a57d48fc828d (patch) | |
| tree | 8c1e45847ff537427495e461d8294276dd776d33 /src/libsyntax/parse | |
| parent | 0e3daa45e26730b3d313042e1c7da0a5c42d6362 (diff) | |
| download | rust-76f8cfb26c7aa38cf066c42ea500a57d48fc828d.tar.gz rust-76f8cfb26c7aa38cf066c42ea500a57d48fc828d.zip | |
libsyntax: Move 'unsafe' to the strict keywords list
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 98a4d97d8d5..f9c50e46264 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 = ~[ - ~"unsafe" ]; for keys.each |word| { words.insert(word, ()); @@ -439,7 +438,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> { ~"ref", ~"return", ~"struct", ~"true", ~"trait", ~"type", - ~"use", + ~"unsafe", ~"use", ~"while" ]; for keys.each |word| { |
