Skip to content

Commit

Permalink
fallout of bitvec/bitset deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Jul 1, 2015
1 parent 8b25086 commit 7850c8d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/bit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.

#![deprecated(reason = "BitVec and BitSet have been migrated to cargo as bit-vec and bit-set",
since = "1.2.0")]
since = "1.3.0")]
#![unstable(feature = "collections", reason = "deprecated")]
#![allow(deprecated)]

Expand Down
4 changes: 4 additions & 0 deletions src/libcollections/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ extern crate alloc;
#[cfg(test)] extern crate test;

pub use binary_heap::BinaryHeap;
#[allow(deprecated)]
pub use bit_vec::BitVec;
#[allow(deprecated)]
pub use bit_set::BitSet;
pub use btree_map::BTreeMap;
pub use btree_set::BTreeSet;
Expand Down Expand Up @@ -111,11 +113,13 @@ pub mod vec_map;

#[unstable(feature = "bitvec", reason = "RFC 509")]
pub mod bit_vec {
#![allow(deprecated)]
pub use bit::{BitVec, Iter};
}

#[unstable(feature = "bitset", reason = "RFC 509")]
pub mod bit_set {
#![allow(deprecated)]
pub use bit::{BitSet, Union, Intersection, Difference, SymmetricDifference};
pub use bit::SetIter as Iter;
}
Expand Down
3 changes: 3 additions & 0 deletions src/librustc_lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
//! Use the former for unit-like structs and the latter for structs with
//! a `pub fn new()`.

// BitSet
#![allow(deprecated)]

use metadata::{csearch, decoder};
use middle::def::*;
use middle::mem_categorization::Typer;
Expand Down
3 changes: 3 additions & 0 deletions src/libsyntax/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

// Functions dealing with attributes and meta items

// BitSet
#![allow(deprecated)]

pub use self::StabilityLevel::*;
pub use self::ReprAttr::*;
pub use self::IntType::*;
Expand Down

0 comments on commit 7850c8d

Please sign in to comment.