From 2c2e7f4d5fa110e9ba9c9f0c48433fd580d45628 Mon Sep 17 00:00:00 2001 From: Christopher Durham Date: Mon, 14 May 2018 04:34:11 -0400 Subject: [PATCH] Update for rust-lang/rust#50536 Fixes #2757 --- clippy_lints/src/needless_pass_by_value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/needless_pass_by_value.rs b/clippy_lints/src/needless_pass_by_value.rs index d2836ffc2..39ed5cb42 100644 --- a/clippy_lints/src/needless_pass_by_value.rs +++ b/clippy_lints/src/needless_pass_by_value.rs @@ -201,7 +201,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessPassByValue { if let ty::TypeVariants::TyAdt(def, ..) = ty.sty { if let Some(span) = cx.tcx.hir.span_if_local(def.did) { let param_env = ty::ParamEnv::empty(); - if param_env.can_type_implement_copy(cx.tcx, ty, span).is_ok() { + if param_env.can_type_implement_copy(cx.tcx, ty).is_ok() { db.span_help(span, "consider marking this type as Copy"); } }