Skip to content

Commit 76f8cfb

Browse files
committed
libsyntax: Move 'unsafe' to the strict keywords list
1 parent 0e3daa4 commit 76f8cfb

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-
~"unsafe"
418417
];
419418
for keys.each |word| {
420419
words.insert(word, ());
@@ -439,7 +438,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> {
439438
~"ref", ~"return",
440439
~"struct",
441440
~"true", ~"trait", ~"type",
442-
~"use",
441+
~"unsafe", ~"use",
443442
~"while"
444443
];
445444
for keys.each |word| {

0 commit comments

Comments
 (0)