Skip to content

Commit

Permalink
Stabilise inclusive_range_methods
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed May 17, 2018
1 parent 90463a6 commit edad2ef
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/liballoc/tests/lib.rs
Expand Up @@ -25,7 +25,6 @@
#![feature(try_reserve)]
#![feature(unboxed_closures)]
#![feature(exact_chunks)]
#![feature(inclusive_range_methods)]

extern crate alloc_system;
extern crate core;
Expand Down
13 changes: 3 additions & 10 deletions src/libcore/ops/range.rs
Expand Up @@ -318,8 +318,6 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
/// # Examples
///
/// ```
/// #![feature(inclusive_range_methods)]
///
/// assert_eq!((3..=5), std::ops::RangeInclusive::new(3, 5));
/// assert_eq!(3 + 4 + 5, (3..=5).sum());
///
Expand All @@ -345,12 +343,11 @@ impl<Idx> RangeInclusive<Idx> {
/// # Examples
///
/// ```
/// #![feature(inclusive_range_methods)]
/// use std::ops::RangeInclusive;
///
/// assert_eq!(3..=5, RangeInclusive::new(3, 5));
/// ```
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
#[inline]
pub const fn new(start: Idx, end: Idx) -> Self {
Self { start, end }
Expand All @@ -369,11 +366,9 @@ impl<Idx> RangeInclusive<Idx> {
/// # Examples
///
/// ```
/// #![feature(inclusive_range_methods)]
///
/// assert_eq!((3..=5).start(), &3);
/// ```
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
#[inline]
pub fn start(&self) -> &Idx {
&self.start
Expand All @@ -392,11 +387,9 @@ impl<Idx> RangeInclusive<Idx> {
/// # Examples
///
/// ```
/// #![feature(inclusive_range_methods)]
///
/// assert_eq!((3..=5).end(), &5);
/// ```
#[unstable(feature = "inclusive_range_methods", issue = "49022")]
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
#[inline]
pub fn end(&self) -> &Idx {
&self.end
Expand Down
1 change: 0 additions & 1 deletion src/libcore/tests/lib.rs
Expand Up @@ -42,7 +42,6 @@
#![feature(try_trait)]
#![feature(exact_chunks)]
#![feature(reverse_bits)]
#![feature(inclusive_range_methods)]
#![feature(iterator_find_map)]
#![feature(slice_internals)]

Expand Down
1 change: 0 additions & 1 deletion src/librustc/lib.rs
Expand Up @@ -68,7 +68,6 @@
#![feature(trusted_len)]
#![feature(catch_expr)]
#![feature(test)]
#![feature(inclusive_range_methods)]

#![recursion_limit="512"]

Expand Down
1 change: 0 additions & 1 deletion src/librustc_codegen_llvm/lib.rs
Expand Up @@ -29,7 +29,6 @@
#![feature(rustc_diagnostic_macros)]
#![feature(slice_sort_by_cached_key)]
#![feature(optin_builtin_traits)]
#![feature(inclusive_range_methods)]

use rustc::dep_graph::WorkProduct;
use syntax_pos::symbol::Symbol;
Expand Down
1 change: 0 additions & 1 deletion src/librustc_mir/lib.rs
Expand Up @@ -29,7 +29,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
#![feature(exhaustive_patterns)]
#![feature(range_contains)]
#![feature(rustc_diagnostic_macros)]
#![feature(inclusive_range_methods)]
#![feature(crate_visibility_modifier)]
#![feature(never_type)]
#![feature(specialization)]
Expand Down
1 change: 0 additions & 1 deletion src/librustc_target/lib.rs
Expand Up @@ -29,7 +29,6 @@
#![feature(const_fn)]
#![feature(fs_read_write)]
#![feature(inclusive_range)]
#![feature(inclusive_range_methods)]
#![feature(slice_patterns)]

#[macro_use]
Expand Down

0 comments on commit edad2ef

Please sign in to comment.