@@ -283,7 +283,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
283283/// # Examples
284284///
285285/// ```
286- /// #![feature(inclusive_range, inclusive_range_syntax)]
286+ /// #![feature(inclusive_range_syntax)]
287287///
288288/// assert_eq!((3..=5), std::ops::RangeInclusive { start: 3, end: 5 });
289289/// assert_eq!(3 + 4 + 5, (3..=5).sum());
@@ -293,21 +293,17 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
293293/// assert_eq!(arr[1..=2], [ 1,2 ]); // RangeInclusive
294294/// ```
295295#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
296- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
296+ #[ stable ( feature = "inclusive_range" , since = "1.26.0 " ) ]
297297pub struct RangeInclusive < Idx > {
298298 /// The lower bound of the range (inclusive).
299- #[ unstable( feature = "inclusive_range" ,
300- reason = "recently added, follows RFC" ,
301- issue = "28237" ) ]
299+ #[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
302300 pub start : Idx ,
303301 /// The upper bound of the range (inclusive).
304- #[ unstable( feature = "inclusive_range" ,
305- reason = "recently added, follows RFC" ,
306- issue = "28237" ) ]
302+ #[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
307303 pub end : Idx ,
308304}
309305
310- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
306+ #[ stable ( feature = "inclusive_range" , since = "1.26.0 " ) ]
311307impl < Idx : fmt:: Debug > fmt:: Debug for RangeInclusive < Idx > {
312308 fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
313309 write ! ( fmt, "{:?}..={:?}" , self . start, self . end)
@@ -385,7 +381,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
385381/// The `..=end` syntax is a `RangeToInclusive`:
386382///
387383/// ```
388- /// #![feature(inclusive_range, inclusive_range_syntax)]
384+ /// #![feature(inclusive_range_syntax)]
389385/// assert_eq!((..=5), std::ops::RangeToInclusive{ end: 5 });
390386/// ```
391387///
@@ -417,16 +413,14 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
417413/// [`Iterator`]: ../iter/trait.IntoIterator.html
418414/// [slicing index]: ../slice/trait.SliceIndex.html
419415#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
420- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
416+ #[ stable ( feature = "inclusive_range" , since = "1.26.0 " ) ]
421417pub struct RangeToInclusive < Idx > {
422418 /// The upper bound of the range (inclusive)
423- #[ unstable( feature = "inclusive_range" ,
424- reason = "recently added, follows RFC" ,
425- issue = "28237" ) ]
419+ #[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
426420 pub end : Idx ,
427421}
428422
429- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
423+ #[ stable ( feature = "inclusive_range" , since = "1.26.0 " ) ]
430424impl < Idx : fmt:: Debug > fmt:: Debug for RangeToInclusive < Idx > {
431425 fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
432426 write ! ( fmt, "..={:?}" , self . end)
0 commit comments