@@ -240,7 +240,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
240240/// # Examples
241241///
242242/// ```
243- /// #![feature(inclusive_range, inclusive_range_syntax)]
243+ /// #![feature(inclusive_range_syntax)]
244244/// fn main() {
245245/// assert_eq!((3...5), std::ops::RangeInclusive{ start: 3, end: 5 });
246246/// assert_eq!(3+4+5, (3...5).sum());
@@ -251,21 +251,17 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
251251/// }
252252/// ```
253253#[ 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 " ) ]
255255pub struct RangeInclusive < Idx > {
256256 /// 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" ) ]
260258 pub start : Idx ,
261259 /// 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" ) ]
265261 pub end : Idx ,
266262}
267263
268- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
264+ #[ stable ( feature = "inclusive_range" , since = "1.21.0 " ) ]
269265impl < Idx : fmt:: Debug > fmt:: Debug for RangeInclusive < Idx > {
270266 fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
271267 write ! ( fmt, "{:?}...{:?}" , self . start, self . end)
@@ -306,7 +302,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
306302/// The `...{integer}` syntax is a `RangeToInclusive`:
307303///
308304/// ```
309- /// #![feature(inclusive_range, inclusive_range_syntax)]
305+ /// #![feature(inclusive_range_syntax)]
310306/// assert_eq!((...5), std::ops::RangeToInclusive{ end: 5 });
311307/// ```
312308///
@@ -330,16 +326,14 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
330326/// assert_eq!(arr[1...2], [ 1,2 ]);
331327/// ```
332328#[ 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 " ) ]
334330pub struct RangeToInclusive < Idx > {
335331 /// 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" ) ]
339333 pub end : Idx ,
340334}
341335
342- #[ unstable ( feature = "inclusive_range" , reason = "recently added, follows RFC" , issue = "28237 ") ]
336+ #[ stable ( feature = "inclusive_range" , since = "1.21.0 " ) ]
343337impl < Idx : fmt:: Debug > fmt:: Debug for RangeToInclusive < Idx > {
344338 fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
345339 write ! ( fmt, "...{:?}" , self . end)
0 commit comments