Auto merge of #5646 - flip1995:rustup, r=matthiaskrgr
Rustup r? @phansch changelog: none
This commit is contained in:
commit
f162dc3ea0
@ -71,7 +71,7 @@ fn check_missing_inline_attrs(cx: &LateContext<'_, '_>, attrs: &[ast::Attribute]
|
||||
fn is_executable(cx: &LateContext<'_, '_>) -> bool {
|
||||
use rustc_session::config::CrateType;
|
||||
|
||||
cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| match t {
|
||||
cx.tcx.sess.crate_types().iter().any(|t: &CrateType| match t {
|
||||
CrateType::Executable => true,
|
||||
_ => false,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user