diff --git a/library/core/src/iter/adapters/chain.rs b/library/core/src/iter/adapters/chain.rs index 0f5e3718408ce..d4b2640e81dc9 100644 --- a/library/core/src/iter/adapters/chain.rs +++ b/library/core/src/iter/adapters/chain.rs @@ -283,11 +283,7 @@ where } #[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")] -impl Default for Chain -where - A: Iterator + Default, - B: Iterator + Default, -{ +impl Default for Chain { /// Creates a `Chain` from the default values for `A` and `B`. /// /// ``` diff --git a/library/core/src/iter/adapters/cloned.rs b/library/core/src/iter/adapters/cloned.rs index b9e2700860c06..bb7e1660c6eb2 100644 --- a/library/core/src/iter/adapters/cloned.rs +++ b/library/core/src/iter/adapters/cloned.rs @@ -155,11 +155,7 @@ where } #[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")] -impl<'a, I, T: 'a> Default for Cloned -where - I: Default + Iterator, - T: Clone, -{ +impl Default for Cloned { /// Creates a `Cloned` iterator from the default value of `I` /// ``` /// # use core::slice; diff --git a/library/core/src/iter/adapters/copied.rs b/library/core/src/iter/adapters/copied.rs index 0aa466e37a217..a076ab925e366 100644 --- a/library/core/src/iter/adapters/copied.rs +++ b/library/core/src/iter/adapters/copied.rs @@ -242,11 +242,7 @@ where } #[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")] -impl<'a, I, T: 'a> Default for Copied -where - I: Default + Iterator, - T: Copy, -{ +impl Default for Copied { /// Creates a `Copied` iterator from the default value of `I` /// ``` /// # use core::slice; diff --git a/library/core/src/iter/adapters/enumerate.rs b/library/core/src/iter/adapters/enumerate.rs index 5b0025cb9849a..8c32a35a12f86 100644 --- a/library/core/src/iter/adapters/enumerate.rs +++ b/library/core/src/iter/adapters/enumerate.rs @@ -266,10 +266,7 @@ where unsafe impl InPlaceIterable for Enumerate {} #[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")] -impl Default for Enumerate -where - I: Iterator + Default, -{ +impl Default for Enumerate { /// Creates an `Enumerate` iterator from the default value of `I` /// ``` /// # use core::slice; diff --git a/library/core/src/iter/adapters/flatten.rs b/library/core/src/iter/adapters/flatten.rs index cb68c807bf5fc..e4020c45f71bc 100644 --- a/library/core/src/iter/adapters/flatten.rs +++ b/library/core/src/iter/adapters/flatten.rs @@ -305,8 +305,7 @@ where #[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")] impl Default for Flatten where - I: Iterator + Default, - ::Item: IntoIterator, + I: Default + Iterator, { /// Creates a `Flatten` iterator from the default value of `I`. /// diff --git a/library/core/src/iter/adapters/rev.rs b/library/core/src/iter/adapters/rev.rs index 0b132e138131a..8ae6d96fde4cc 100644 --- a/library/core/src/iter/adapters/rev.rs +++ b/library/core/src/iter/adapters/rev.rs @@ -137,10 +137,7 @@ impl FusedIterator for Rev where I: FusedIterator + DoubleEndedIterator {} unsafe impl TrustedLen for Rev where I: TrustedLen + DoubleEndedIterator {} #[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")] -impl Default for Rev -where - I: Default + Iterator, -{ +impl Default for Rev { /// Creates a `Rev` iterator from the default value of `I` /// ``` /// # use core::slice;