@@ -41,6 +41,7 @@ use crate::hash::{Hash, Hasher};
41
41
#[ doc( alias = ".." ) ]
42
42
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
43
43
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
44
+ #[ cfg_attr( not( bootstrap) , lang = "range_full" ) ]
44
45
pub struct RangeFull ;
45
46
46
47
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -73,6 +74,7 @@ impl fmt::Debug for RangeFull {
73
74
#[ doc( alias = ".." ) ]
74
75
#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
75
76
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
77
+ #[ cfg_attr( not( bootstrap) , lang = "range" ) ]
76
78
pub struct Range < Idx > {
77
79
/// The lower bound of the range (inclusive).
78
80
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -178,6 +180,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
178
180
#[ doc( alias = ".." ) ]
179
181
#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
180
182
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
183
+ #[ cfg_attr( not( bootstrap) , lang = "range_from" ) ]
181
184
pub struct RangeFrom < Idx > {
182
185
/// The lower bound of the range (inclusive).
183
186
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -262,6 +265,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
262
265
#[ doc( alias = ".." ) ]
263
266
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
264
267
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
268
+ #[ cfg_attr( not( bootstrap) , lang = "range_to" ) ]
265
269
pub struct RangeTo < Idx > {
266
270
/// The upper bound of the range (exclusive).
267
271
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -404,6 +408,7 @@ impl<Idx> RangeInclusive<Idx> {
404
408
#[ inline]
405
409
#[ rustc_promotable]
406
410
#[ rustc_const_stable( feature = "const_range_new" , since = "1.32.0" ) ]
411
+ #[ cfg_attr( not( bootstrap) , lang = "range_inclusive" ) ]
407
412
pub const fn new ( start : Idx , end : Idx ) -> Self {
408
413
Self { start, end, is_empty : None }
409
414
}
@@ -607,6 +612,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
607
612
#[ doc( alias = "..=" ) ]
608
613
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
609
614
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
615
+ #[ cfg_attr( not( bootstrap) , lang = "range_to_inclusive" ) ]
610
616
pub struct RangeToInclusive < Idx > {
611
617
/// The upper bound of the range (inclusive)
612
618
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
0 commit comments