Skip to content

Commit

Permalink
Merge pull request #2758 from CAD97/patch-1
Browse files Browse the repository at this point in the history
Update for #50536
  • Loading branch information
oli-obk committed May 14, 2018
2 parents 491fb01 + 2c2e7f4 commit ff0f8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/needless_pass_by_value.rs
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit ff0f8d5

Please sign in to comment.