use slice::contains where applicable
This commit is contained in:
@@ -2186,7 +2186,7 @@ fn msvc_imps_needed(tcx: TyCtxt<'_>) -> bool {
|
||||
// indirectly from ThinLTO. In theory these are not needed as ThinLTO could resolve
|
||||
// these, but it currently does not do so.
|
||||
let can_have_static_objects =
|
||||
tcx.sess.lto() == Lto::Thin || tcx.crate_types().iter().any(|ct| *ct == CrateType::Rlib);
|
||||
tcx.sess.lto() == Lto::Thin || tcx.crate_types().contains(&CrateType::Rlib);
|
||||
|
||||
tcx.sess.target.is_like_windows &&
|
||||
can_have_static_objects &&
|
||||
|
||||
Reference in New Issue
Block a user