diff options
| author | Caio <c410.f3r@gmail.com> | 2020-07-10 07:44:27 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2020-07-10 07:53:53 -0300 |
| commit | c3756927478afe8d3a880edc469afd766c2f9e82 (patch) | |
| tree | 56d7c0aa70bb29dc9e2a76261910205e3784e817 /src | |
| parent | 187aea7c34adf06b0db39f688d60d3fdac8e7e3e (diff) | |
| download | rust-c3756927478afe8d3a880edc469afd766c2f9e82.tar.gz rust-c3756927478afe8d3a880edc469afd766c2f9e82.zip | |
Remove some Default impls
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/ops/range.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs index 7422e5d720b..179038d1977 100644 --- a/src/libcore/ops/range.rs +++ b/src/libcore/ops/range.rs @@ -179,7 +179,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> { /// /// [`Iterator`]: ../iter/trait.IntoIterator.html #[doc(alias = "..")] -#[derive(Clone, Default, PartialEq, Eq, Hash)] // not Copy -- see #27186 +#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186 #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeFrom<Idx> { /// The lower bound of the range (inclusive). @@ -261,7 +261,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> { /// [`Iterator`]: ../iter/trait.IntoIterator.html /// [slicing index]: ../slice/trait.SliceIndex.html #[doc(alias = "..")] -#[derive(Copy, Clone, Default, PartialEq, Eq, Hash)] +#[derive(Copy, Clone, PartialEq, Eq, Hash)] #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeTo<Idx> { /// The upper bound of the range (exclusive). @@ -329,7 +329,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> { /// assert_eq!(arr[1..=3], [ 1,2,3 ]); // RangeInclusive /// ``` #[doc(alias = "..=")] -#[derive(Clone, Default, PartialEq, Eq, Hash)] // not Copy -- see #27186 +#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186 #[stable(feature = "inclusive_range", since = "1.26.0")] pub struct RangeInclusive<Idx> { // Note that the fields here are not public to allow changing the @@ -556,7 +556,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> { /// [`Iterator`]: ../iter/trait.IntoIterator.html /// [slicing index]: ../slice/trait.SliceIndex.html #[doc(alias = "..=")] -#[derive(Copy, Clone, Default, PartialEq, Eq, Hash)] +#[derive(Copy, Clone, PartialEq, Eq, Hash)] #[stable(feature = "inclusive_range", since = "1.26.0")] pub struct RangeToInclusive<Idx> { /// The upper bound of the range (inclusive) |
