diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-10 17:26:54 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-10 17:27:10 -0700 |
| commit | df790261696fb85c0cc4dee3950d7ba89804eb49 (patch) | |
| tree | 77ee7376d3a21a50221c5ee210adc715e75f4cb5 /src/libsyntax/parse | |
| parent | 2aa67e9aa9a29e9302337dd56313c4a2023a8900 (diff) | |
| download | rust-df790261696fb85c0cc4dee3950d7ba89804eb49.tar.gz rust-df790261696fb85c0cc4dee3950d7ba89804eb49.zip | |
Promote 'return' from a restricted keyword to a strict keyword
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 a96b2be6c09..6f756c946a4 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", - ~"return", ~"struct", ~"unsafe" ]; @@ -438,7 +437,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> { ~"let", ~"log", ~"loop", ~"match", ~"mod", ~"move", ~"mut", ~"pure", - ~"ref", + ~"ref", ~"return", ~"true", ~"trait", ~"type", ~"unchecked", ~"use", ~"while" |
