Revert stability for Bitv and BitvSet

The collections were promoted to stable by mistake and do not match RFC 509.
This reverts the stability back to unstable.

[breaking-change] since previously stable API became unstable.

Fixes #21193
This commit is contained in:
Simonas Kazlauskas 2015-01-15 22:56:53 +02:00 committed by Steve Klabnik
parent a2e277edf4
commit 873ae555e9
2 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@ static FALSE: bool = false;
/// println!("{:?}", bv);
/// println!("total bits set to true: {}", bv.iter().filter(|x| *x).count());
/// ```
#[stable]
#[unstable = "RFC 509"]
pub struct Bitv {
/// Internal representation of the bit vector
storage: Vec<u32>,
@ -1107,7 +1107,7 @@ impl<'a> RandomAccessIterator for Iter<'a> {
/// assert!(bv[3]);
/// ```
#[derive(Clone)]
#[stable]
#[unstable = "RFC 509"]
pub struct BitvSet {
bitv: Bitv,
}

View File

@ -70,12 +70,12 @@ pub mod string;
pub mod vec;
pub mod vec_map;
#[stable]
#[unstable = "RFC 509"]
pub mod bitv {
pub use bit::{Bitv, Iter};
}
#[stable]
#[unstable = "RFC 509"]
pub mod bitv_set {
pub use bit::{BitvSet, Union, Intersection, Difference, SymmetricDifference};
pub use bit::SetIter as Iter;