Skip to content

Commit 873ae55

Browse files
nagisasteveklabnik
authored andcommitted
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
1 parent a2e277e commit 873ae55

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcollections/bit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static FALSE: bool = false;
156156
/// println!("{:?}", bv);
157157
/// println!("total bits set to true: {}", bv.iter().filter(|x| *x).count());
158158
/// ```
159-
#[stable]
159+
#[unstable = "RFC 509"]
160160
pub struct Bitv {
161161
/// Internal representation of the bit vector
162162
storage: Vec<u32>,
@@ -1107,7 +1107,7 @@ impl<'a> RandomAccessIterator for Iter<'a> {
11071107
/// assert!(bv[3]);
11081108
/// ```
11091109
#[derive(Clone)]
1110-
#[stable]
1110+
#[unstable = "RFC 509"]
11111111
pub struct BitvSet {
11121112
bitv: Bitv,
11131113
}

src/libcollections/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ pub mod string;
7070
pub mod vec;
7171
pub mod vec_map;
7272

73-
#[stable]
73+
#[unstable = "RFC 509"]
7474
pub mod bitv {
7575
pub use bit::{Bitv, Iter};
7676
}
7777

78-
#[stable]
78+
#[unstable = "RFC 509"]
7979
pub mod bitv_set {
8080
pub use bit::{BitvSet, Union, Intersection, Difference, SymmetricDifference};
8181
pub use bit::SetIter as Iter;

0 commit comments

Comments
 (0)