@@ -38,6 +38,7 @@ use crate::hash::Hash;
3838/// [`IntoIterator`]: ../iter/trait.Iterator.html
3939/// [`Iterator`]: ../iter/trait.IntoIterator.html
4040/// [slicing index]: ../slice/trait.SliceIndex.html
41+ #[ cfg_attr( not( bootstrap) , lang = "RangeFull" ) ]
4142#[ doc( alias = ".." ) ]
4243#[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
4344#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -70,6 +71,7 @@ impl fmt::Debug for RangeFull {
7071/// assert_eq!(arr[1.. 3], [ 1,2 ]); // Range
7172/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
7273/// ```
74+ #[ cfg_attr( not( bootstrap) , lang = "Range" ) ]
7375#[ doc( alias = ".." ) ]
7476#[ derive( Clone , Default , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
7577#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -178,6 +180,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
178180/// ```
179181///
180182/// [`Iterator`]: ../iter/trait.IntoIterator.html
183+ #[ cfg_attr( not( bootstrap) , lang = "RangeFrom" ) ]
181184#[ doc( alias = ".." ) ]
182185#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
183186#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -260,6 +263,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
260263/// [`IntoIterator`]: ../iter/trait.Iterator.html
261264/// [`Iterator`]: ../iter/trait.IntoIterator.html
262265/// [slicing index]: ../slice/trait.SliceIndex.html
266+ #[ cfg_attr( not( bootstrap) , lang = "RangeTo" ) ]
263267#[ doc( alias = ".." ) ]
264268#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
265269#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -328,6 +332,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
328332/// assert_eq!(arr[1.. 3], [ 1,2 ]);
329333/// assert_eq!(arr[1..=3], [ 1,2,3 ]); // RangeInclusive
330334/// ```
335+ #[ cfg_attr( not( bootstrap) , lang = "RangeInclusive" ) ]
331336#[ doc( alias = "..=" ) ]
332337#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
333338#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
@@ -359,6 +364,7 @@ impl<Idx> RangeInclusive<Idx> {
359364 ///
360365 /// assert_eq!(3..=5, RangeInclusive::new(3, 5));
361366 /// ```
367+ #[ cfg_attr( not( bootstrap) , lang = "range_inclusive_new" ) ]
362368 #[ stable( feature = "inclusive_range_methods" , since = "1.27.0" ) ]
363369 #[ inline]
364370 #[ rustc_promotable]
@@ -555,6 +561,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
555561/// [`IntoIterator`]: ../iter/trait.Iterator.html
556562/// [`Iterator`]: ../iter/trait.IntoIterator.html
557563/// [slicing index]: ../slice/trait.SliceIndex.html
564+ #[ cfg_attr( not( bootstrap) , lang = "RangeToInclusive" ) ]
558565#[ doc( alias = "..=" ) ]
559566#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
560567#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
0 commit comments