Skip to content

Commit ff0f8d5

Browse files
authored
Merge pull request #2758 from CAD97/patch-1
Update for rust-lang/rust#50536
2 parents 491fb01 + 2c2e7f4 commit ff0f8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessPassByValue {
201201
if let ty::TypeVariants::TyAdt(def, ..) = ty.sty {
202202
if let Some(span) = cx.tcx.hir.span_if_local(def.did) {
203203
let param_env = ty::ParamEnv::empty();
204-
if param_env.can_type_implement_copy(cx.tcx, ty, span).is_ok() {
204+
if param_env.can_type_implement_copy(cx.tcx, ty).is_ok() {
205205
db.span_help(span, "consider marking this type as Copy");
206206
}
207207
}

0 commit comments

Comments
 (0)