Skip to content

Commit edad2ef

Browse files
committed
Stabilise inclusive_range_methods
1 parent 90463a6 commit edad2ef

File tree

7 files changed

+3
-16
lines changed

7 files changed

+3
-16
lines changed

src/liballoc/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#![feature(try_reserve)]
2626
#![feature(unboxed_closures)]
2727
#![feature(exact_chunks)]
28-
#![feature(inclusive_range_methods)]
2928

3029
extern crate alloc_system;
3130
extern crate core;

src/libcore/ops/range.rs

+3-10
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
318318
/// # Examples
319319
///
320320
/// ```
321-
/// #![feature(inclusive_range_methods)]
322-
///
323321
/// assert_eq!((3..=5), std::ops::RangeInclusive::new(3, 5));
324322
/// assert_eq!(3 + 4 + 5, (3..=5).sum());
325323
///
@@ -345,12 +343,11 @@ impl<Idx> RangeInclusive<Idx> {
345343
/// # Examples
346344
///
347345
/// ```
348-
/// #![feature(inclusive_range_methods)]
349346
/// use std::ops::RangeInclusive;
350347
///
351348
/// assert_eq!(3..=5, RangeInclusive::new(3, 5));
352349
/// ```
353-
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
350+
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
354351
#[inline]
355352
pub const fn new(start: Idx, end: Idx) -> Self {
356353
Self { start, end }
@@ -369,11 +366,9 @@ impl<Idx> RangeInclusive<Idx> {
369366
/// # Examples
370367
///
371368
/// ```
372-
/// #![feature(inclusive_range_methods)]
373-
///
374369
/// assert_eq!((3..=5).start(), &3);
375370
/// ```
376-
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
371+
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
377372
#[inline]
378373
pub fn start(&self) -> &Idx {
379374
&self.start
@@ -392,11 +387,9 @@ impl<Idx> RangeInclusive<Idx> {
392387
/// # Examples
393388
///
394389
/// ```
395-
/// #![feature(inclusive_range_methods)]
396-
///
397390
/// assert_eq!((3..=5).end(), &5);
398391
/// ```
399-
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
392+
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
400393
#[inline]
401394
pub fn end(&self) -> &Idx {
402395
&self.end

src/libcore/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#![feature(try_trait)]
4343
#![feature(exact_chunks)]
4444
#![feature(reverse_bits)]
45-
#![feature(inclusive_range_methods)]
4645
#![feature(iterator_find_map)]
4746
#![feature(slice_internals)]
4847

src/librustc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
#![feature(trusted_len)]
6969
#![feature(catch_expr)]
7070
#![feature(test)]
71-
#![feature(inclusive_range_methods)]
7271

7372
#![recursion_limit="512"]
7473

src/librustc_codegen_llvm/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(rustc_diagnostic_macros)]
3030
#![feature(slice_sort_by_cached_key)]
3131
#![feature(optin_builtin_traits)]
32-
#![feature(inclusive_range_methods)]
3332

3433
use rustc::dep_graph::WorkProduct;
3534
use syntax_pos::symbol::Symbol;

src/librustc_mir/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
2929
#![feature(exhaustive_patterns)]
3030
#![feature(range_contains)]
3131
#![feature(rustc_diagnostic_macros)]
32-
#![feature(inclusive_range_methods)]
3332
#![feature(crate_visibility_modifier)]
3433
#![feature(never_type)]
3534
#![feature(specialization)]

src/librustc_target/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(const_fn)]
3030
#![feature(fs_read_write)]
3131
#![feature(inclusive_range)]
32-
#![feature(inclusive_range_methods)]
3332
#![feature(slice_patterns)]
3433

3534
#[macro_use]

0 commit comments

Comments
 (0)