@@ -240,7 +240,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
240
240
/// # Examples
241
241
///
242
242
/// ```
243
- /// #![feature(inclusive_range, inclusive_range_syntax)]
243
+ /// #![feature(inclusive_range_syntax)]
244
244
/// fn main() {
245
245
/// assert_eq!((3...5), std::ops::RangeInclusive{ start: 3, end: 5 });
246
246
/// assert_eq!(3+4+5, (3...5).sum());
@@ -251,21 +251,17 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
251
251
/// }
252
252
/// ```
253
253
#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
254
- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
254
+ #[ stable ( feature = "inclusive_range" , since = "1.21.0 " ) ]
255
255
pub struct RangeInclusive < Idx > {
256
256
/// The lower bound of the range (inclusive).
257
- #[ unstable( feature = "inclusive_range" ,
258
- reason = "recently added, follows RFC" ,
259
- issue = "28237" ) ]
257
+ #[ stable( feature = "inclusive_range" , since = "1.21.0" ) ]
260
258
pub start : Idx ,
261
259
/// The upper bound of the range (inclusive).
262
- #[ unstable( feature = "inclusive_range" ,
263
- reason = "recently added, follows RFC" ,
264
- issue = "28237" ) ]
260
+ #[ stable( feature = "inclusive_range" , since = "1.21.0" ) ]
265
261
pub end : Idx ,
266
262
}
267
263
268
- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
264
+ #[ stable ( feature = "inclusive_range" , since = "1.21.0 " ) ]
269
265
impl < Idx : fmt:: Debug > fmt:: Debug for RangeInclusive < Idx > {
270
266
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
271
267
write ! ( fmt, "{:?}...{:?}" , self . start, self . end)
@@ -306,7 +302,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
306
302
/// The `...{integer}` syntax is a `RangeToInclusive`:
307
303
///
308
304
/// ```
309
- /// #![feature(inclusive_range, inclusive_range_syntax)]
305
+ /// #![feature(inclusive_range_syntax)]
310
306
/// assert_eq!((...5), std::ops::RangeToInclusive{ end: 5 });
311
307
/// ```
312
308
///
@@ -330,16 +326,14 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
330
326
/// assert_eq!(arr[1...2], [ 1,2 ]);
331
327
/// ```
332
328
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
333
- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
329
+ #[ stable ( feature = "inclusive_range" , since = "1.21.0 " ) ]
334
330
pub struct RangeToInclusive < Idx > {
335
331
/// The upper bound of the range (inclusive)
336
- #[ unstable( feature = "inclusive_range" ,
337
- reason = "recently added, follows RFC" ,
338
- issue = "28237" ) ]
332
+ #[ stable( feature = "inclusive_range" , since = "1.21.0" ) ]
339
333
pub end : Idx ,
340
334
}
341
335
342
- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
336
+ #[ stable ( feature = "inclusive_range" , since = "1.21.0 " ) ]
343
337
impl < Idx : fmt:: Debug > fmt:: Debug for RangeToInclusive < Idx > {
344
338
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
345
339
write ! ( fmt, "...{:?}" , self . end)
0 commit comments