Skip to content

Commit

Permalink
Revert stability for Bitv and BitvSet
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nagisa authored and steveklabnik committed Jan 17, 2015
1 parent a2e277e commit 873ae55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/bit.rs
Expand Up @@ -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>,
Expand Down Expand Up @@ -1107,7 +1107,7 @@ impl<'a> RandomAccessIterator for Iter<'a> {
/// assert!(bv[3]);
/// ```
#[derive(Clone)]
#[stable]
#[unstable = "RFC 509"]
pub struct BitvSet {
bitv: Bitv,
}
Expand Down
4 changes: 2 additions & 2 deletions src/libcollections/lib.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 873ae55

Please sign in to comment.