aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me/effect.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-23 15:29:17 -0700
committerGraydon Hoare <[email protected]>2010-07-23 15:29:17 -0700
commit44e2dc2789a8b3a19024ec67e25f8bd4d28afdce (patch)
treeef2c5effdfa8ce4a1efce2ab8c3a142a574acbf4 /src/boot/me/effect.ml
parentAdd test for writing-through-uninit bug (reported on IRC by jrmuizel), plus f... (diff)
downloadrust-44e2dc2789a8b3a19024ec67e25f8bd4d28afdce.tar.xz
rust-44e2dc2789a8b3a19024ec67e25f8bd4d28afdce.zip
Improve mutability checking. Closes #118.
Diffstat (limited to 'src/boot/me/effect.ml')
-rw-r--r--src/boot/me/effect.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/me/effect.ml b/src/boot/me/effect.ml
index be0c5af2..c55e1d12 100644
--- a/src/boot/me/effect.ml
+++ b/src/boot/me/effect.ml
@@ -51,7 +51,7 @@ let mutability_checking_visitor
if (is_mutable or is_init)
then ()
else err (Some s.id)
- "writing to non-mutable slot of type %a in statement %a"
+ "writing to immutable type %a in statement %a"
Ast.sprintf_ty dst_ty Ast.sprintf_stmt s
in
(* FIXME (issue #75): enforce the no-write-alias-to-immutable-slot