Remove the EnumSet impls

This commit is contained in:
David Tolnay 2017-02-02 19:13:55 -08:00
parent faaa494579
commit 9f04b9d6e7
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 1 additions and 21 deletions

View File

@ -27,8 +27,6 @@ use std::collections::{
VecDeque,
};
#[cfg(feature = "collections")]
use collections::enum_set::{CLike, EnumSet};
#[cfg(feature = "collections")]
use collections::borrow::ToOwned;
@ -481,15 +479,6 @@ seq_impl!(
BTreeSet::new(),
BTreeSet::insert);
#[cfg(feature = "collections")]
seq_impl!(
EnumSet<T>,
EnumSetVisitor<T: Deserialize + CLike>,
visitor,
EnumSet::new(),
EnumSet::new(),
EnumSet::insert);
#[cfg(any(feature = "std", feature = "collections"))]
seq_impl!(
LinkedList<T>,

View File

@ -63,7 +63,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(feature = "unstable", feature(nonzero, inclusive_range, zero_one))]
#![cfg_attr(feature = "alloc", feature(alloc))]
#![cfg_attr(feature = "collections", feature(collections, enumset))]
#![cfg_attr(feature = "collections", feature(collections))]
#![cfg_attr(feature = "cargo-clippy", allow(linkedlist, type_complexity, doc_markdown))]
#![deny(missing_docs)]

View File

@ -24,8 +24,6 @@ use collections::{
Vec,
};
#[cfg(feature = "collections")]
use collections::enum_set::{CLike, EnumSet};
#[cfg(feature = "collections")]
use collections::borrow::ToOwned;
@ -278,13 +276,6 @@ impl<T> Serialize for BTreeSet<T>
serialize_seq!();
}
#[cfg(feature = "collections")]
impl<T> Serialize for EnumSet<T>
where T: Serialize + CLike
{
serialize_seq!();
}
#[cfg(feature = "std")]
impl<T, H> Serialize for HashSet<T, H>
where T: Serialize + Eq + Hash,