aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-23 15:38:34 -0700
committerGraydon Hoare <[email protected]>2010-07-23 15:38:34 -0700
commit3ce18d88c5d172340050c6603c14835a3a8530b7 (patch)
treee3ecd214630c64ccc27797e73ed0c32bfee5ddf2 /src/boot
parentImprove mutability checking. Closes #118. (diff)
downloadrust-3ce18d88c5d172340050c6603c14835a3a8530b7.tar.xz
rust-3ce18d88c5d172340050c6603c14835a3a8530b7.zip
Another quick fix from jmuizelaar for that "some ocaml versions dont't notice wrong wildcard count in patterns" bug.
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/me/type.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/me/type.ml b/src/boot/me/type.ml
index 7943e88b..2e647eb7 100644
--- a/src/boot/me/type.ml
+++ b/src/boot/me/type.ml
@@ -654,7 +654,7 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
fn_ctx.fnctx_just_saw_ret <-
match stmt.Common.node with
Ast.STMT_ret _ | Ast.STMT_be _ | Ast.STMT_fail
- | Ast.STMT_yield _ -> true
+ | Ast.STMT_yield -> true
| _ -> false
in