Skip to content

Commit 8b7f7e6

Browse files
committed
Auto merge of #5254 - JohnTitor:sugg, r=flip1995
Rustup to rust-lang/rust#69469 changelog: none
2 parents 0f4a3fe + f1d0791 commit 8b7f7e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/non_copy_const.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fn verify_ty_bound<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: Ty<'tcx>, source: S
128128
db.span_label(const_kw_span, "make this a static item (maybe with lazy_static)");
129129
},
130130
Source::Assoc { ty: ty_span, .. } => {
131-
if ty.flags.contains(TypeFlags::HAS_FREE_LOCAL_NAMES) {
131+
if ty.flags.intersects(TypeFlags::HAS_FREE_LOCAL_NAMES) {
132132
db.span_label(ty_span, &format!("consider requiring `{}` to be `Copy`", ty));
133133
}
134134
},

0 commit comments

Comments
 (0)