about summary refs log tree commit diff
path: root/src/rustc/front
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-03-07 16:48:57 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-03-07 16:51:31 -0800
commitf0250a23d3fa2f8b4a4a4113ca89e41945a4cfed (patch)
treedc4426e7ef764f596c25feb3947980ea9ee2d042 /src/rustc/front
parenta9bd76b3c11ee0ad706abc3779a337fee3550424 (diff)
downloadrust-f0250a23d3fa2f8b4a4a4113ca89e41945a4cfed.tar.gz
rust-f0250a23d3fa2f8b4a4a4113ca89e41945a4cfed.zip
stdlib: Stop incurring vtable dispatch costs when hashmaps are used
This required changing almost all users of hashmaps to import the hashmap interface first.

The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
Diffstat (limited to 'src/rustc/front')
-rw-r--r--src/rustc/front/attr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rustc/front/attr.rs b/src/rustc/front/attr.rs
index 4f4fecbe409..834d0957ca5 100644
--- a/src/rustc/front/attr.rs
+++ b/src/rustc/front/attr.rs
@@ -1,6 +1,7 @@
 // Functions dealing with attributes and meta_items
 
 import std::map;
+import std::map::hashmap;
 import syntax::{ast, ast_util};
 import driver::session::session;