diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index e815d72d36646..99e40a3628115 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -382,14 +382,6 @@ impl<'a, T: ?Sized, U: ?Sized> AsRef for &'a mut T where T: AsRef } } -// FIXME (#23442): replace the above impls for &/&mut with the following more general one: -// // As lifts over Deref -// impl AsRef for D where D::Target: AsRef { -// fn as_ref(&self) -> &U { -// self.deref().as_ref() -// } -// } - // AsMut lifts over &mut #[stable(feature = "rust1", since = "1.0.0")] impl<'a, T: ?Sized, U: ?Sized> AsMut for &'a mut T where T: AsMut @@ -399,14 +391,6 @@ impl<'a, T: ?Sized, U: ?Sized> AsMut for &'a mut T where T: AsMut } } -// FIXME (#23442): replace the above impl for &mut with the following more general one: -// // AsMut lifts over DerefMut -// impl AsMut for D where D::Target: AsMut { -// fn as_mut(&mut self) -> &mut U { -// self.deref_mut().as_mut() -// } -// } - // From implies Into #[stable(feature = "rust1", since = "1.0.0")] impl Into for T where U: From