@@ -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
///
@@ -345,12 +343,11 @@ impl<Idx> RangeInclusive<Idx> {
345
343
/// # Examples
346
344
///
347
345
/// ```
348
- /// #![feature(inclusive_range_methods)]
349
346
/// use std::ops::RangeInclusive;
350
347
///
351
348
/// assert_eq!(3..=5, RangeInclusive::new(3, 5));
352
349
/// ```
353
- #[ unstable ( feature = "inclusive_range_methods" , issue = "49022 " ) ]
350
+ #[ stable ( feature = "inclusive_range_methods" , since = "1.27.0 " ) ]
354
351
#[ inline]
355
352
pub const fn new ( start : Idx , end : Idx ) -> Self {
356
353
Self { start, end }
@@ -369,11 +366,9 @@ impl<Idx> RangeInclusive<Idx> {
369
366
/// # Examples
370
367
///
371
368
/// ```
372
- /// #![feature(inclusive_range_methods)]
373
- ///
374
369
/// assert_eq!((3..=5).start(), &3);
375
370
/// ```
376
- #[ unstable ( feature = "inclusive_range_methods" , issue = "49022 " ) ]
371
+ #[ stable ( feature = "inclusive_range_methods" , since = "1.27.0 " ) ]
377
372
#[ inline]
378
373
pub fn start ( & self ) -> & Idx {
379
374
& self . start
@@ -392,11 +387,9 @@ impl<Idx> RangeInclusive<Idx> {
392
387
/// # Examples
393
388
///
394
389
/// ```
395
- /// #![feature(inclusive_range_methods)]
396
- ///
397
390
/// assert_eq!((3..=5).end(), &5);
398
391
/// ```
399
- #[ unstable ( feature = "inclusive_range_methods" , issue = "49022 " ) ]
392
+ #[ stable ( feature = "inclusive_range_methods" , since = "1.27.0 " ) ]
400
393
#[ inline]
401
394
pub fn end ( & self ) -> & Idx {
402
395
& self . end
0 commit comments