@@ -179,7 +179,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
179
179
///
180
180
/// [`Iterator`]: ../iter/trait.IntoIterator.html
181
181
#[ doc( alias = ".." ) ]
182
- #[ derive( Clone , Default , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
182
+ #[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
183
183
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
184
184
pub struct RangeFrom < Idx > {
185
185
/// The lower bound of the range (inclusive).
@@ -261,7 +261,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
261
261
/// [`Iterator`]: ../iter/trait.IntoIterator.html
262
262
/// [slicing index]: ../slice/trait.SliceIndex.html
263
263
#[ doc( alias = ".." ) ]
264
- #[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
264
+ #[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
265
265
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
266
266
pub struct RangeTo < Idx > {
267
267
/// The upper bound of the range (exclusive).
@@ -329,7 +329,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
329
329
/// assert_eq!(arr[1..=3], [ 1,2,3 ]); // RangeInclusive
330
330
/// ```
331
331
#[ doc( alias = "..=" ) ]
332
- #[ derive( Clone , Default , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
332
+ #[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
333
333
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
334
334
pub struct RangeInclusive < Idx > {
335
335
// Note that the fields here are not public to allow changing the
@@ -556,7 +556,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
556
556
/// [`Iterator`]: ../iter/trait.IntoIterator.html
557
557
/// [slicing index]: ../slice/trait.SliceIndex.html
558
558
#[ doc( alias = "..=" ) ]
559
- #[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
559
+ #[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
560
560
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
561
561
pub struct RangeToInclusive < Idx > {
562
562
/// The upper bound of the range (inclusive)
0 commit comments