@@ -318,8 +318,6 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
318
318
/// # Examples
319
319
///
320
320
/// ```
321
- /// #![feature(inclusive_range_methods)]
322
- ///
323
321
/// assert_eq!((3..=5), std::ops::RangeInclusive::new(3, 5));
324
322
/// assert_eq!(3 + 4 + 5, (3..=5).sum());
325
323
///
@@ -355,12 +353,11 @@ impl<Idx> RangeInclusive<Idx> {
355
353
/// # Examples
356
354
///
357
355
/// ```
358
- /// #![feature(inclusive_range_methods)]
359
356
/// use std::ops::RangeInclusive;
360
357
///
361
358
/// assert_eq!(3..=5, RangeInclusive::new(3, 5));
362
359
/// ```
363
- #[ unstable ( feature = "inclusive_range_methods" , issue = "49022 " ) ]
360
+ #[ stable ( feature = "inclusive_range_methods" , since = "1.27.0 " ) ]
364
361
#[ inline]
365
362
pub const fn new ( start : Idx , end : Idx ) -> Self {
366
363
Self { start, end }
@@ -379,11 +376,9 @@ impl<Idx> RangeInclusive<Idx> {
379
376
/// # Examples
380
377
///
381
378
/// ```
382
- /// #![feature(inclusive_range_methods)]
383
- ///
384
379
/// assert_eq!((3..=5).start(), &3);
385
380
/// ```
386
- #[ unstable ( feature = "inclusive_range_methods" , issue = "49022 " ) ]
381
+ #[ stable ( feature = "inclusive_range_methods" , since = "1.27.0 " ) ]
387
382
#[ inline]
388
383
pub fn start ( & self ) -> & Idx {
389
384
& self . start
@@ -402,11 +397,9 @@ impl<Idx> RangeInclusive<Idx> {
402
397
/// # Examples
403
398
///
404
399
/// ```
405
- /// #![feature(inclusive_range_methods)]
406
- ///
407
400
/// assert_eq!((3..=5).end(), &5);
408
401
/// ```
409
- #[ unstable ( feature = "inclusive_range_methods" , issue = "49022 " ) ]
402
+ #[ stable ( feature = "inclusive_range_methods" , since = "1.27.0 " ) ]
410
403
#[ inline]
411
404
pub fn end ( & self ) -> & Idx {
412
405
& self . end
0 commit comments