Skip to content

Commit 0c07435

Browse files
committed
review fixes
1 parent f357ea8 commit 0c07435

File tree

4 files changed

+8
-25
lines changed

4 files changed

+8
-25
lines changed

src/liballoc/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ mod btree;
171171
pub mod borrow;
172172
pub mod fmt;
173173
pub mod linked_list;
174-
pub mod range;
175174
pub mod slice;
176175
pub mod str;
177176
pub mod string;
@@ -204,8 +203,7 @@ trait SpecExtend<I: IntoIterator> {
204203
fn spec_extend(&mut self, iter: I);
205204
}
206205

207-
#[rustc_deprecated(reason = "moved to core::ops", since = "1.19.0")]
208-
#[allow(deprecated)]
206+
#[rustc_deprecated(reason = "moved to core::ops", since = "1.22.0")]
209207
pub use core::ops::Bound;
210208

211209
pub use oom::oom;

src/liballoc/range.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/libcollections/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,20 @@
3333
//! See [`std::collections`](../std/collections/index.html) for a detailed
3434
//! discussion of collections in Rust.
3535
36+
extern crate core;
37+
3638
#[macro_reexport(vec, format)]
3739
extern crate alloc;
3840

41+
#[rustc_deprecated(reason = "moved to core::ops", since = "1.22.0")]
42+
pub use core::ops::range;
43+
3944
pub use alloc::Bound;
4045

4146
pub use alloc::binary_heap;
4247
pub use alloc::borrow;
4348
pub use alloc::fmt;
4449
pub use alloc::linked_list;
45-
#[allow(deprecated)]
46-
pub use alloc::range;
4750
pub use alloc::slice;
4851
pub use alloc::str;
4952
pub use alloc::string;

src/libstd/collections/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,8 @@ pub use self::hash_map::HashMap;
435435
#[stable(feature = "rust1", since = "1.0.0")]
436436
pub use self::hash_set::HashSet;
437437

438-
#[rustc_deprecated(reason = "moved to std::ops", since = "1.19.0")]
439-
#[allow(deprecated)]
440-
pub use alloc::range;
438+
#[rustc_deprecated(reason = "moved to std::ops", since = "1.22.0")]
439+
pub use std::ops::range;
441440

442441
mod hash;
443442

0 commit comments

Comments
 (0)