Auto merge of #5254 - JohnTitor:sugg, r=flip1995

Rustup to rust-lang/rust#69469

changelog: none
This commit is contained in:
bors 2020-03-02 20:00:31 +00:00
commit 8b7f7e6672

View File

@ -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));
}
},