about summary refs log tree commit diff
path: root/src/libterm
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-19 19:29:58 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-23 00:35:11 -0800
commit2a14e084cfd8cf9a9149d0b7c6329b0dad0521d0 (patch)
tree78090dacffcdda10a36a6e538f3f73d3d3a6e35c /src/libterm
parentedf351e9f7d17777b1385093bfa7b6654e662d44 (diff)
downloadrust-2a14e084cfd8cf9a9149d0b7c6329b0dad0521d0.tar.gz
rust-2a14e084cfd8cf9a9149d0b7c6329b0dad0521d0.zip
Move std::{trie, hashmap} to libcollections
These two containers are indeed collections, so their place is in
libcollections, not in libstd. There will always be a hash map as part of the
standard distribution of Rust, but by moving it out of the standard library it
makes libstd that much more portable to more platforms and environments.

This conveniently also removes the stuttering of 'std::hashmap::HashMap',
although 'collections::HashMap' is only one character shorter.
Diffstat (limited to 'src/libterm')
-rw-r--r--src/libterm/lib.rs2
-rw-r--r--src/libterm/terminfo/mod.rs2
-rw-r--r--src/libterm/terminfo/parser/compiled.rs2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/libterm/lib.rs b/src/libterm/lib.rs
index 1efbd461da8..db9f5d3da5c 100644
--- a/src/libterm/lib.rs
+++ b/src/libterm/lib.rs
@@ -23,6 +23,8 @@
 #[deny(non_camel_case_types)];
 #[allow(missing_doc)];
 
+extern crate collections;
+
 use std::os;
 use std::io;
 use terminfo::TermInfo;
diff --git a/src/libterm/terminfo/mod.rs b/src/libterm/terminfo/mod.rs
index 439297db84e..de8a1dcc363 100644
--- a/src/libterm/terminfo/mod.rs
+++ b/src/libterm/terminfo/mod.rs
@@ -10,7 +10,7 @@
 
 #[allow(missing_doc)];
 
-use std::hashmap::HashMap;
+use collections::HashMap;
 
 /// A parsed terminfo entry.
 pub struct TermInfo {
diff --git a/src/libterm/terminfo/parser/compiled.rs b/src/libterm/terminfo/parser/compiled.rs
index b2d06d3b7d8..e9d71d1c2f7 100644
--- a/src/libterm/terminfo/parser/compiled.rs
+++ b/src/libterm/terminfo/parser/compiled.rs
@@ -14,8 +14,8 @@
 
 
 use std::{vec, str};
-use std::hashmap::HashMap;
 use std::io;
+use collections::HashMap;
 use super::super::TermInfo;
 
 // These are the orders ncurses uses in its compiled format (as of 5.9). Not sure if portable.