libsyntax: Move 'unsafe' to the strict keywords list
This commit is contained in:
@@ -414,7 +414,6 @@ fn temporary_keyword_table() -> HashMap<~str, ()> {
|
|||||||
fn restricted_keyword_table() -> HashMap<~str, ()> {
|
fn restricted_keyword_table() -> HashMap<~str, ()> {
|
||||||
let words = str_hash();
|
let words = str_hash();
|
||||||
let keys = ~[
|
let keys = ~[
|
||||||
~"unsafe"
|
|
||||||
];
|
];
|
||||||
for keys.each |word| {
|
for keys.each |word| {
|
||||||
words.insert(word, ());
|
words.insert(word, ());
|
||||||
@@ -439,7 +438,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> {
|
|||||||
~"ref", ~"return",
|
~"ref", ~"return",
|
||||||
~"struct",
|
~"struct",
|
||||||
~"true", ~"trait", ~"type",
|
~"true", ~"trait", ~"type",
|
||||||
~"use",
|
~"unsafe", ~"use",
|
||||||
~"while"
|
~"while"
|
||||||
];
|
];
|
||||||
for keys.each |word| {
|
for keys.each |word| {
|
||||||
|
|||||||
Reference in New Issue
Block a user