move dlist from core -> std

Closes #3549
This commit is contained in:
Daniel Micay 2013-03-30 16:15:46 -04:00
parent 8e30d3fc0b
commit 258a36738e
4 changed files with 6 additions and 12 deletions

View file

@ -189,7 +189,6 @@ pub mod container;
pub mod option; pub mod option;
pub mod result; pub mod result;
pub mod either; pub mod either;
pub mod dlist;
pub mod hashmap; pub mod hashmap;
pub mod cell; pub mod cell;
pub mod trie; pub mod trie;

View file

@ -18,12 +18,8 @@ Do not use ==, !=, <, etc on doubly-linked lists -- it may not terminate.
*/ */
use iter; use core::prelude::*;
use iter::BaseIter; use core::managed;
use kinds::Copy;
use managed;
use option::{None, Option, Some};
use vec;
pub type DListLink<T> = Option<@mut DListNode<T>>; pub type DListLink<T> = Option<@mut DListNode<T>>;
@ -540,10 +536,8 @@ impl<T> BaseIter<T> for @mut DList<T> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use dlist::{DList, concat, from_vec, new_dlist_node}; use super::*;
use iter; use core::prelude::*;
use option::{None, Some};
use vec;
#[test] #[test]
pub fn test_dlist_concat() { pub fn test_dlist_concat() {

View file

@ -17,10 +17,10 @@ Core encoding and decoding interfaces.
#[forbid(non_camel_case_types)]; #[forbid(non_camel_case_types)];
use core::prelude::*; use core::prelude::*;
use core::dlist::DList;
use core::hashmap::linear::{LinearMap, LinearSet}; use core::hashmap::linear::{LinearMap, LinearSet};
use core::trie::{TrieMap, TrieSet}; use core::trie::{TrieMap, TrieSet};
use deque::Deque; use deque::Deque;
use dlist::DList;
use treemap::{TreeMap, TreeSet}; use treemap::{TreeMap, TreeSet};
pub trait Encoder { pub trait Encoder {

View file

@ -75,6 +75,7 @@ pub mod priority_queue;
pub mod rope; pub mod rope;
pub mod smallintmap; pub mod smallintmap;
pub mod sort; pub mod sort;
pub mod dlist;
pub mod treemap; pub mod treemap;
// And ... other stuff // And ... other stuff