about summary refs log tree commit diff
path: root/src/boot
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-11-29 15:29:55 -0800
committerGraydon Hoare <graydon@mozilla.com>2010-11-29 15:29:55 -0800
commit3e08171fc21f7fcc403aa315d8fb54f04c552841 (patch)
treeb4ff7c529374fe4680c70b9d26d95a3b0499afbb /src/boot
parent386f363cfea72899fa3c3f2a194d00819cdbe806 (diff)
downloadrust-3e08171fc21f7fcc403aa315d8fb54f04c552841.tar.gz
rust-3e08171fc21f7fcc403aa315d8fb54f04c552841.zip
Change mutability into a type constructor.
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/me/type.ml7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/boot/me/type.ml b/src/boot/me/type.ml
index 70fc1094837..87e8e4c1582 100644
--- a/src/boot/me/type.ml
+++ b/src/boot/me/type.ml
@@ -910,6 +910,13 @@ let check_block (cx:Semant.ctxt) : (fn_ctx -> Ast.block -> unit) =
       Array.iter check_stmt' block.Common.node
 
     and check_stmt (stmt:Ast.stmt) : unit =
+      try
+        check_stmt_full stmt
+      with
+          Common.Semant_err (None, msg) ->
+            raise (Common.Semant_err ((Some stmt.Common.id), msg))
+
+    and check_stmt_full (stmt:Ast.stmt) : unit =
       check_ret stmt;
       match stmt.Common.node with
           Ast.STMT_spawn (dst, _, _, callee, args) ->