Skip to content

Commit

Permalink
Auto merge of rust-lang#5254 - JohnTitor:sugg, r=flip1995
Browse files Browse the repository at this point in the history
Rustup to rust-lang/rust#69469

changelog: none
  • Loading branch information
bors committed Mar 2, 2020
2 parents 0f4a3fe + f1d0791 commit 8b7f7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/non_copy_const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn verify_ty_bound<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: Ty<'tcx>, source: S
db.span_label(const_kw_span, "make this a static item (maybe with lazy_static)");
},
Source::Assoc { ty: ty_span, .. } => {
if ty.flags.contains(TypeFlags::HAS_FREE_LOCAL_NAMES) {
if ty.flags.intersects(TypeFlags::HAS_FREE_LOCAL_NAMES) {
db.span_label(ty_span, &format!("consider requiring `{}` to be `Copy`", ty));
}
},
Expand Down

0 comments on commit 8b7f7e6

Please sign in to comment.