Skip to content

Commit ea4ec93

Browse files
author
Ulrik Sverdrup
committed
Feature flag collections_range
1 parent afdf052 commit ea4ec93

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ pub mod borrow;
8282
pub mod enum_set;
8383
pub mod fmt;
8484
pub mod linked_list;
85+
#[unstable(feature = "collections_range", reason = "was just added")]
8586
pub mod range;
8687
pub mod slice;
8788
pub mod str;

src/libcollections/range.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use core::option::Option::{self, None, Some};
1414
use core::ops::{RangeFull, Range, RangeTo, RangeFrom};
1515

16-
#[unstable(feature = "collections", reason = "was just added")]
1716
/// **RangeArgument** is implemented by Rust's built-in range types, produced
1817
/// by range syntax like `..`, `a..`, `..b` or `c..d`.
1918
pub trait RangeArgument<T> {
@@ -29,20 +28,16 @@ pub trait RangeArgument<T> {
2928
}
3029

3130

32-
#[unstable(feature = "collections", reason = "was just added")]
3331
impl<T> RangeArgument<T> for RangeFull {}
3432

35-
#[unstable(feature = "collections", reason = "was just added")]
3633
impl<T> RangeArgument<T> for RangeFrom<T> {
3734
fn start(&self) -> Option<&T> { Some(&self.start) }
3835
}
3936

40-
#[unstable(feature = "collections", reason = "was just added")]
4137
impl<T> RangeArgument<T> for RangeTo<T> {
4238
fn end(&self) -> Option<&T> { Some(&self.end) }
4339
}
4440

45-
#[unstable(feature = "collections", reason = "was just added")]
4641
impl<T> RangeArgument<T> for Range<T> {
4742
fn start(&self) -> Option<&T> { Some(&self.start) }
4843
fn end(&self) -> Option<&T> { Some(&self.end) }

0 commit comments

Comments
 (0)