diff options
| author | bors <bors@rust-lang.org> | 2020-03-02 20:00:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-02 20:00:31 +0000 |
| commit | 8b7f7e667268921c278af94ae30a61e87a22b22b (patch) | |
| tree | ebd3ff3f7d6798f04d42be1c3ca28bc2fcb291dd | |
| parent | 0f4a3fecccd55c0e5b4d50ce59ed660ac8e67dcc (diff) | |
| parent | f1d0791c3a4d136300b483356a502fb873be31e1 (diff) | |
| download | rust-8b7f7e667268921c278af94ae30a61e87a22b22b.tar.gz rust-8b7f7e667268921c278af94ae30a61e87a22b22b.zip | |
Auto merge of #5254 - JohnTitor:sugg, r=flip1995
Rustup to rust-lang/rust#69469 changelog: none
| -rw-r--r-- | clippy_lints/src/non_copy_const.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/non_copy_const.rs b/clippy_lints/src/non_copy_const.rs index 46e26b32697..908d1fe286d 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)); } }, |
