diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-03-03 04:37:39 +0900 |
|---|---|---|
| committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-03-03 04:53:42 +0900 |
| commit | f1d0791c3a4d136300b483356a502fb873be31e1 (patch) | |
| tree | ebd3ff3f7d6798f04d42be1c3ca28bc2fcb291dd | |
| parent | 0f4a3fecccd55c0e5b4d50ce59ed660ac8e67dcc (diff) | |
| download | rust-f1d0791c3a4d136300b483356a502fb873be31e1.tar.gz rust-f1d0791c3a4d136300b483356a502fb873be31e1.zip | |
Rustup to rust-lang/rust#69469
| -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)); } }, |
