@@ -283,7 +283,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
283
283
/// # Examples
284
284
///
285
285
/// ```
286
- /// #![feature(inclusive_range, inclusive_range_syntax)]
286
+ /// #![feature(inclusive_range_syntax)]
287
287
///
288
288
/// assert_eq!((3..=5), std::ops::RangeInclusive { start: 3, end: 5 });
289
289
/// assert_eq!(3 + 4 + 5, (3..=5).sum());
@@ -293,21 +293,17 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
293
293
/// assert_eq!(arr[1..=2], [ 1,2 ]); // RangeInclusive
294
294
/// ```
295
295
#[ 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 " ) ]
297
297
pub struct RangeInclusive < Idx > {
298
298
/// 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" ) ]
302
300
pub start : Idx ,
303
301
/// 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" ) ]
307
303
pub end : Idx ,
308
304
}
309
305
310
- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
306
+ #[ stable ( feature = "inclusive_range" , since = "1.26.0 " ) ]
311
307
impl < Idx : fmt:: Debug > fmt:: Debug for RangeInclusive < Idx > {
312
308
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
313
309
write ! ( fmt, "{:?}..={:?}" , self . start, self . end)
@@ -385,7 +381,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
385
381
/// The `..=end` syntax is a `RangeToInclusive`:
386
382
///
387
383
/// ```
388
- /// #![feature(inclusive_range, inclusive_range_syntax)]
384
+ /// #![feature(inclusive_range_syntax)]
389
385
/// assert_eq!((..=5), std::ops::RangeToInclusive{ end: 5 });
390
386
/// ```
391
387
///
@@ -417,16 +413,14 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
417
413
/// [`Iterator`]: ../iter/trait.IntoIterator.html
418
414
/// [slicing index]: ../slice/trait.SliceIndex.html
419
415
#[ 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 " ) ]
421
417
pub struct RangeToInclusive < Idx > {
422
418
/// 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" ) ]
426
420
pub end : Idx ,
427
421
}
428
422
429
- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
423
+ #[ stable ( feature = "inclusive_range" , since = "1.26.0 " ) ]
430
424
impl < Idx : fmt:: Debug > fmt:: Debug for RangeToInclusive < Idx > {
431
425
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
432
426
write ! ( fmt, "..={:?}" , self . end)
0 commit comments