From f1d0791c3a4d136300b483356a502fb873be31e1 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 3 Mar 2020 04:37:39 +0900 Subject: [PATCH] Rustup to rust-lang/rust#69469 --- clippy_lints/src/non_copy_const.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/non_copy_const.rs b/clippy_lints/src/non_copy_const.rs index 46e26b326971..908d1fe286d4 100644 --- a/clippy_lints/src/non_copy_const.rs +++ b/clippy_lints/src/non_copy_const.rs @@ -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)); } },