diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-03-07 16:48:57 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-03-07 17:35:13 -0800 |
| commit | c9375fed8d55197a528edb3c3182aaf3b71abe76 (patch) | |
| tree | 2d1ed1a7f5954b14e4f92f8745908ad6f92355b8 /src/test/run-fail | |
| parent | c245d9e980946d4472e9c830a109db77e1bcb038 (diff) | |
| download | rust-c9375fed8d55197a528edb3c3182aaf3b71abe76.tar.gz rust-c9375fed8d55197a528edb3c3182aaf3b71abe76.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/test/run-fail')
| -rw-r--r-- | src/test/run-fail/unwind-misc-1.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/run-fail/unwind-misc-1.rs b/src/test/run-fail/unwind-misc-1.rs index 365a1cbdcc6..532a911bd42 100644 --- a/src/test/run-fail/unwind-misc-1.rs +++ b/src/test/run-fail/unwind-misc-1.rs @@ -2,6 +2,7 @@ use std; import std::map; +import std::map::hashmap; import uint; fn main() { @@ -21,4 +22,4 @@ fn main() { map.insert(arr, arr + [@"value stuff"]); } map.insert([@"boom"], []); -} \ No newline at end of file +} |
