Skip to content

Commit ed923cf

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libcollections/range.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10+
#![unstable(feature = "collections_range", reason = "was just added")]
1011

1112
//! Range syntax.
1213
1314
use core::option::Option::{self, None, Some};
1415
use core::ops::{RangeFull, Range, RangeTo, RangeFrom};
1516

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

3131

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

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

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

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

0 commit comments

Comments
 (0)