about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-07-23 22:17:27 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-07-28 18:47:02 +0300
commit676d282dd3cd2dedba651e98c9a41af42983f08b (patch)
tree859875de5c271f683d5b57bb9ec4911e44388f16 /src/liballoc
parent434152157f9d73ad1899fb8da3a61aed6f8a46d6 (diff)
downloadrust-676d282dd3cd2dedba651e98c9a41af42983f08b.tar.gz
rust-676d282dd3cd2dedba651e98c9a41af42983f08b.zip
Deny `unused_lifetimes` through rustbuild
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/string.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index 366191e2c85..eca726cd410 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -1838,6 +1838,7 @@ impl PartialEq for String {
 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 @@ macro_rules! impl_eq {
         }
 
         #[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[..]) }