Skip to content

Commit 3070f39

Browse files
varkorpietroalbini
authored andcommitted
Stabilise inclusive_range_methods
1 parent 84b5a46 commit 3070f39

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
///
@@ -355,12 +353,11 @@ impl<Idx> RangeInclusive<Idx> {
355353
/// # Examples
356354
///
357355
/// ```
358-
/// #![feature(inclusive_range_methods)]
359356
/// use std::ops::RangeInclusive;
360357
///
361358
/// assert_eq!(3..=5, RangeInclusive::new(3, 5));
362359
/// ```
363-
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
360+
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
364361
#[inline]
365362
pub const fn new(start: Idx, end: Idx) -> Self {
366363
Self { start, end }
@@ -379,11 +376,9 @@ impl<Idx> RangeInclusive<Idx> {
379376
/// # Examples
380377
///
381378
/// ```
382-
/// #![feature(inclusive_range_methods)]
383-
///
384379
/// assert_eq!((3..=5).start(), &3);
385380
/// ```
386-
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
381+
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
387382
#[inline]
388383
pub fn start(&self) -> &Idx {
389384
&self.start
@@ -402,11 +397,9 @@ impl<Idx> RangeInclusive<Idx> {
402397
/// # Examples
403398
///
404399
/// ```
405-
/// #![feature(inclusive_range_methods)]
406-
///
407400
/// assert_eq!((3..=5).end(), &5);
408401
/// ```
409-
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
402+
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
410403
#[inline]
411404
pub fn end(&self) -> &Idx {
412405
&self.end

src/libcore/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#![feature(exact_chunks)]
4545
#![cfg_attr(stage0, feature(atomic_nand))]
4646
#![feature(reverse_bits)]
47-
#![feature(inclusive_range_methods)]
4847
#![feature(iterator_find_map)]
4948
#![feature(slice_internals)]
5049

src/librustc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
#![feature(trusted_len)]
7070
#![feature(catch_expr)]
7171
#![feature(test)]
72-
#![feature(inclusive_range_methods)]
7372

7473
#![recursion_limit="512"]
7574

src/librustc_mir/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
3131
#![feature(range_contains)]
3232
#![feature(rustc_diagnostic_macros)]
3333
#![feature(nonzero)]
34-
#![feature(inclusive_range_methods)]
3534
#![feature(crate_visibility_modifier)]
3635
#![feature(never_type)]
3736
#![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]

src/librustc_trans/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;

0 commit comments

Comments
 (0)