about summary refs log tree commit diff
path: root/src/libcore/ops
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-05-14 23:25:22 +0100
committervarkor <github@varkor.com>2018-05-17 20:58:28 +0100
commitedad2eff0c0587cd0b9d4b46f11579ef43388be8 (patch)
treefa729e77e10728544d8cad97a9be231a77af0740 /src/libcore/ops
parent90463a6bdcd18c60e18a1cc810fc6453b96f7d54 (diff)
Stabilise inclusive_range_methods
Diffstat (limited to 'src/libcore/ops')
-rw-r--r--src/libcore/ops/range.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs
index 1f84631ada3..70da5fcda00 100644
--- a/src/libcore/ops/range.rs
+++ b/src/libcore/ops/range.rs
@@ -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());
 ///
@@ -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 }
@@ -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
@@ -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