diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-11 18:17:13 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-11 18:17:26 -0700 |
| commit | fb851242b7b47546ae591b75642361a494536a53 (patch) | |
| tree | 5c2bb7e0e59096147207c801abf6a4b13547a15c /src/libsyntax/parse | |
| parent | 8672b9003f17b6e38a9c55f92dfc1deef91b1344 (diff) | |
| download | rust-fb851242b7b47546ae591b75642361a494536a53.tar.gz rust-fb851242b7b47546ae591b75642361a494536a53.zip | |
Promote 'pub' and 'priv' from restricted to strict keywords
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 cd422b03a4b..aac36040cf0 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -414,7 +414,6 @@ fn restricted_keyword_table() -> HashMap<~str, ()> { ~"const", ~"copy", ~"fail", ~"fn", ~"impl", - ~"priv", ~"pub", ~"unsafe" ]; for keys.each |word| { @@ -435,7 +434,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> { ~"if", ~"let", ~"log", ~"loop", ~"match", ~"mod", ~"move", ~"mut", - ~"pure", + ~"priv", ~"pub", ~"pure", ~"ref", ~"return", ~"struct", ~"true", ~"trait", ~"type", |
