aboutsummaryrefslogtreecommitdiff
path: root/src/lib/std.rc
diff options
context:
space:
mode:
authorRoy Frostig <[email protected]>2010-07-16 18:14:52 -0700
committerRoy Frostig <[email protected]>2010-07-16 18:14:52 -0700
commitfb68286700525b5bcd2d44d05d1d53f53b702af6 (patch)
tree63b0a5b61eed209c0210f133258ef85554e4ebb4 /src/lib/std.rc
parentFix IL translation of pattern-alt to allow a value of mutable/constrained typ... (diff)
downloadrust-fb68286700525b5bcd2d44d05d1d53f53b702af6.tar.xz
rust-fb68286700525b5bcd2d44d05d1d53f53b702af6.zip
Add incomplete hashmap implementation to stdlib.
Diffstat (limited to 'src/lib/std.rc')
-rw-r--r--src/lib/std.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/std.rc b/src/lib/std.rc
index 80d21fb0..4bdad5bd 100644
--- a/src/lib/std.rc
+++ b/src/lib/std.rc
@@ -26,6 +26,13 @@ auth _io = unsafe;
auth _str = unsafe;
auth _vec = unsafe;
+/**
+ * FIXME for some reason 'auth sys = unsafe' isn't enough here to silence
+ * the effect system about map.mk_hashmap.hashl and .hashr using
+ * sys.rustrt.size_of and thereby being unsafe.
+ */
+auth map.mk_hashmap = unsafe;
+
// Target-OS module.
alt (target_os) {
@@ -37,3 +44,5 @@ alt (target_os) {
mod os = "linux_os.rs";
}
}
+
+mod map;