Skip to content

Commit

Permalink
Auto merge of #4302 - matthiaskrgr:rustup_13, r=Manishearth
Browse files Browse the repository at this point in the history
rustup rust-lang/rust#62964

changelog: none
  • Loading branch information
bors committed Jul 26, 2019
2 parents f8e04ff + f195550 commit 483b9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/needless_pass_by_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 483b9cc

Please sign in to comment.