@@ -36,7 +36,7 @@ use crate::hash::Hash;
36
36
/// ```
37
37
///
38
38
/// [slicing index]: crate::slice::SliceIndex
39
- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeFull" ) ]
39
+ #[ lang = "RangeFull" ]
40
40
#[ doc( alias = ".." ) ]
41
41
#[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
42
42
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -69,7 +69,7 @@ impl fmt::Debug for RangeFull {
69
69
/// assert_eq!(arr[1.. 3], [ 1,2 ]); // Range
70
70
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
71
71
/// ```
72
- #[ cfg_attr ( not ( bootstrap ) , lang = "Range" ) ]
72
+ #[ lang = "Range" ]
73
73
#[ doc( alias = ".." ) ]
74
74
#[ derive( Clone , Default , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
75
75
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -172,7 +172,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
172
172
/// assert_eq!(arr[1.. 3], [ 1,2 ]);
173
173
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
174
174
/// ```
175
- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeFrom" ) ]
175
+ #[ lang = "RangeFrom" ]
176
176
#[ doc( alias = ".." ) ]
177
177
#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
178
178
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -253,7 +253,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
253
253
/// ```
254
254
///
255
255
/// [slicing index]: crate::slice::SliceIndex
256
- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeTo" ) ]
256
+ #[ lang = "RangeTo" ]
257
257
#[ doc( alias = ".." ) ]
258
258
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
259
259
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -322,7 +322,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
322
322
/// assert_eq!(arr[1.. 3], [ 1,2 ]);
323
323
/// assert_eq!(arr[1..=3], [ 1,2,3 ]); // RangeInclusive
324
324
/// ```
325
- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeInclusive" ) ]
325
+ #[ lang = "RangeInclusive" ]
326
326
#[ doc( alias = "..=" ) ]
327
327
#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
328
328
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
@@ -354,7 +354,7 @@ impl<Idx> RangeInclusive<Idx> {
354
354
///
355
355
/// assert_eq!(3..=5, RangeInclusive::new(3, 5));
356
356
/// ```
357
- #[ cfg_attr ( not ( bootstrap ) , lang = "range_inclusive_new" ) ]
357
+ #[ lang = "range_inclusive_new" ]
358
358
#[ stable( feature = "inclusive_range_methods" , since = "1.27.0" ) ]
359
359
#[ inline]
360
360
#[ rustc_promotable]
@@ -543,7 +543,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
543
543
/// ```
544
544
///
545
545
/// [slicing index]: crate::slice::SliceIndex
546
- #[ cfg_attr ( not ( bootstrap ) , lang = "RangeToInclusive" ) ]
546
+ #[ lang = "RangeToInclusive" ]
547
547
#[ doc( alias = "..=" ) ]
548
548
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
549
549
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
0 commit comments