This commit is contained in:
Matthias Krüger 2019-07-26 22:58:31 +02:00
parent f8e04ff397
commit f195550148

View File

@ -193,7 +193,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessPassByValue {
if_chain! {
if !is_self(arg);
if !ty.is_mutable_pointer();
if !ty.is_mutable_ptr();
if !is_copy(cx, ty);
if !whitelisted_traits.iter().any(|&t| implements_trait(cx, ty, t, &[]));
if !implements_borrow_trait;