Remove collections feature flag and disable VecMap, which is unstable

This commit is contained in:
Erick Tryzelaar 2015-04-12 10:48:32 -07:00
parent 7622255d6f
commit 9a4ba047c4
3 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
use std::hash::Hash;
use std::marker::PhantomData;
use std::num::FromPrimitive;
@ -572,6 +572,8 @@ impl<K, V> Deserialize for HashMap<K, V>
///////////////////////////////////////////////////////////////////////////////
// FIXME: `VecMap` is unstable.
/*
pub struct VecMapVisitor<V> {
marker: PhantomData<VecMap<V>>,
}
@ -623,6 +625,7 @@ impl<V> Deserialize for VecMap<V>
deserializer.visit(VecMapVisitor::new())
}
}
*/
///////////////////////////////////////////////////////////////////////////////

View File

@ -6,7 +6,7 @@
//! leaving serde to perform roughly the same speed as a hand written serializer for a specific
//! type.
#![feature(collections, core)]
#![feature(core)]
pub use ser::{Serialize, Serializer};

View File

@ -1,4 +1,4 @@
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
use std::hash::Hash;
use std::path;
use std::rc::Rc;
@ -410,6 +410,8 @@ impl<K, V> Serialize for HashMap<K, V>
}
}
// FIXME: `VecMap` is unstable.
/*
impl<V> Serialize for VecMap<V>
where V: Serialize,
{
@ -420,6 +422,7 @@ impl<V> Serialize for VecMap<V>
serializer.visit_map(MapIteratorVisitor::new(self.iter(), Some(self.len())))
}
}
*/
///////////////////////////////////////////////////////////////////////////////