From df790261696fb85c0cc4dee3950d7ba89804eb49 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 10 Sep 2012 17:26:54 -0700 Subject: Promote 'return' from a restricted keyword to a strict keyword --- src/libsyntax/parse/token.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libsyntax/parse') 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" -- cgit 1.4.1-3-g733a5