]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/string.rs
Remove recommendation about idiomatic syntax for Arc::Clone
[rust.git] / src / liballoc / string.rs
index 366191e2c85f39f38aa7ad5de472056705b456fd..eca726cd41032f28d1638398de4d593a019af07f 100644 (file)
@@ -1838,6 +1838,7 @@ fn ne(&self, other: &String) -> bool {
 macro_rules! impl_eq {
     ($lhs:ty, $rhs: ty) => {
         #[stable(feature = "rust1", since = "1.0.0")]
+        #[allow(unused_lifetimes)]
         impl<'a, 'b> PartialEq<$rhs> for $lhs {
             #[inline]
             fn eq(&self, other: &$rhs) -> bool { PartialEq::eq(&self[..], &other[..]) }
@@ -1846,6 +1847,7 @@ fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) }
         }
 
         #[stable(feature = "rust1", since = "1.0.0")]
+        #[allow(unused_lifetimes)]
         impl<'a, 'b> PartialEq<$lhs> for $rhs {
             #[inline]
             fn eq(&self, other: &$lhs) -> bool { PartialEq::eq(&self[..], &other[..]) }