Skip to content

Commit

Permalink
Stabilize collection modules
Browse files Browse the repository at this point in the history
The earlier collections stabilization did not cover the modules
themselves. This commit marks as stable those modules whose types have
been stabilized.
  • Loading branch information
aturon committed Jan 5, 2015
1 parent 121f6c6 commit cb765ce
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libcollections/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
//! ```

#![allow(missing_docs)]
#![stable]

use core::prelude::*;

Expand Down
2 changes: 2 additions & 0 deletions src/libcollections/dlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
// Backlinks over DList::prev are raw pointers that form a full chain in
// the reverse direction.

#![stable]

use core::prelude::*;

use alloc::boxed::Box;
Expand Down
4 changes: 4 additions & 0 deletions src/libcollections/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,23 @@ pub mod string;
pub mod vec;
pub mod vec_map;

#[stable]
pub mod bitv {
pub use bit::{Bitv, Iter};
}

#[stable]
pub mod bitv_set {
pub use bit::{BitvSet, Union, Intersection, Difference, SymmetricDifference};
pub use bit::SetIter as Iter;
}

#[stable]
pub mod btree_map {
pub use btree::map::*;
}

#[stable]
pub mod btree_set {
pub use btree::set::*;
}
Expand Down
2 changes: 2 additions & 0 deletions src/libcollections/ring_buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//! ends of the container. It also has `O(1)` indexing like a vector. The contained elements are
//! not required to be copyable, and the queue will be sendable if the contained type is sendable.

#![stable]

use core::prelude::*;

use core::cmp::Ordering;
Expand Down
4 changes: 3 additions & 1 deletion src/libstd/collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
//! }
//! ```

#![experimental]
#![stable]

pub use core_collections::{BinaryHeap, Bitv, BitvSet, BTreeMap, BTreeSet};
pub use core_collections::{DList, RingBuf, VecMap};
Expand All @@ -322,11 +322,13 @@ pub use self::hash_set::HashSet;

mod hash;

#[stable]
pub mod hash_map {
//! A hashmap
pub use super::hash::map::*;
}

#[stable]
pub mod hash_set {
//! A hashset
pub use super::hash::set::*;
Expand Down

0 comments on commit cb765ce

Please sign in to comment.