@@ -36,7 +36,7 @@ use crate::hash::Hash;
3636/// ```
3737///
3838/// [slicing index]: crate::slice::SliceIndex
39- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeFull" ) ]
39+ #[ lang = "RangeFull" ]
4040#[ doc( alias = ".." ) ]
4141#[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
4242#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -69,7 +69,7 @@ impl fmt::Debug for RangeFull {
6969/// assert_eq!(arr[1.. 3], [ 1,2 ]); // Range
7070/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
7171/// ```
72- #[ cfg_attr ( not ( bootstrap ) , lang = "Range" ) ]
72+ #[ lang = "Range" ]
7373#[ doc( alias = ".." ) ]
7474#[ derive( Clone , Default , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
7575#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -172,7 +172,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
172172/// assert_eq!(arr[1.. 3], [ 1,2 ]);
173173/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
174174/// ```
175- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeFrom" ) ]
175+ #[ lang = "RangeFrom" ]
176176#[ doc( alias = ".." ) ]
177177#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
178178#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -253,7 +253,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
253253/// ```
254254///
255255/// [slicing index]: crate::slice::SliceIndex
256- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeTo" ) ]
256+ #[ lang = "RangeTo" ]
257257#[ doc( alias = ".." ) ]
258258#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
259259#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -322,7 +322,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
322322/// assert_eq!(arr[1.. 3], [ 1,2 ]);
323323/// assert_eq!(arr[1..=3], [ 1,2,3 ]); // RangeInclusive
324324/// ```
325- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeInclusive" ) ]
325+ #[ lang = "RangeInclusive" ]
326326#[ doc( alias = "..=" ) ]
327327#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
328328#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
@@ -354,7 +354,7 @@ impl<Idx> RangeInclusive<Idx> {
354354 ///
355355 /// assert_eq!(3..=5, RangeInclusive::new(3, 5));
356356 /// ```
357- #[ cfg_attr ( not ( bootstrap ) , lang = "range_inclusive_new" ) ]
357+ #[ lang = "range_inclusive_new" ]
358358 #[ stable( feature = "inclusive_range_methods" , since = "1.27.0" ) ]
359359 #[ inline]
360360 #[ rustc_promotable]
@@ -543,7 +543,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
543543/// ```
544544///
545545/// [slicing index]: crate::slice::SliceIndex
546- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeToInclusive" ) ]
546+ #[ lang = "RangeToInclusive" ]
547547#[ doc( alias = "..=" ) ]
548548#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
549549#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
0 commit comments