diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-11 16:20:31 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-11 17:15:33 -0700 |
| commit | 27cc0a36b689bcbc58117450330f6fa4ebd35c9b (patch) | |
| tree | ed332e3b1efbb66981f485ccf75f04d592dd51ab /src/libsyntax/parse | |
| parent | 1203da3b9ddbf6af343fdb826b899b55a7bda053 (diff) | |
| download | rust-27cc0a36b689bcbc58117450330f6fa4ebd35c9b.tar.gz rust-27cc0a36b689bcbc58117450330f6fa4ebd35c9b.zip | |
Promote 'struct' from a restricted keyword to a strict keyword
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
