From 6ba4eacddf2a07e13f6589f04303ce7fb4c4d70c Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 1 Sep 2011 14:35:00 +0200 Subject: Make resolve recognize upvars Upvars are now marked with def_upvar throughout, not just when going through freevars::lookup_def. This makes things less error-prone. One thing to watch out for is that def_upvar is used in `for each` bodies too, when they refer to a local outside the body. --- src/comp/syntax/parse/parser.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/comp/syntax/parse') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 94f2dd3c99f..369e07080f4 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -173,7 +173,6 @@ fn bad_expr_word_table() -> hashmap { words.insert(~"prove", ()); words.insert(~"native", ()); words.insert(~"fn", ()); - words.insert(~"block", ()); words.insert(~"lambda", ()); words.insert(~"pure", ()); words.insert(~"iter", ()); -- cgit 1.4.1-3-g733a5