about summary refs log tree commit diff
path: root/src/libcore/core.rc
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-09-10 16:34:31 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-09-10 16:50:07 -0700
commit29003c799f41cce948bc043cdd1350ca4bee949e (patch)
tree0e879812117977b10d42558588f952b792fa5f99 /src/libcore/core.rc
parent20263595185590c8c2705b92bddbd00e3fc56713 (diff)
Rename the poorly named Managed<T> type to Mut<T>.
The Mut<T> type is intended to allow freezable data stuctures to be stored in
`@mut` boxes. Currently this causes borrowck to be very conserivative since it
cannot prove that you are not modifying such a structure while iterating over
it, for example.  But if you do `@Mut<T>` instead of `@mut T`, you will
effectively convert borrowck's static checks into dynamic ones.  This lets
you use the e.g. send_map just like a Java Map or something else.
Diffstat (limited to 'src/libcore/core.rc')
-rw-r--r--src/libcore/core.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/core.rc b/src/libcore/core.rc
index 25bdcea0bb2..c0c9cf5f9b6 100644
--- a/src/libcore/core.rc
+++ b/src/libcore/core.rc
@@ -57,7 +57,7 @@ export hash;
 export cmp;
 export num;
 export path;
-export managed;
+export mutable;
 export flate;
 export unit;
 export uniq;
@@ -225,7 +225,7 @@ mod run;
 mod sys;
 mod unsafe;
 
-mod managed;
+mod mutable;
 
 mod flate;