From 27cc0a36b689bcbc58117450330f6fa4ebd35c9b Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 11 Sep 2012 16:20:31 -0700 Subject: Promote 'struct' from a restricted keyword to a strict keyword --- src/libsyntax/parse/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index cfef2f96581..cd422b03a4b 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -415,7 +415,6 @@ fn restricted_keyword_table() -> HashMap<~str, ()> { ~"fail", ~"fn", ~"impl", ~"priv", ~"pub", - ~"struct", ~"unsafe" ]; for keys.each |word| { @@ -438,6 +437,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> { ~"match", ~"mod", ~"move", ~"mut", ~"pure", ~"ref", ~"return", + ~"struct", ~"true", ~"trait", ~"type", ~"unchecked", ~"use", ~"while" -- cgit 1.4.1-3-g733a5