Skip to content

Commit

Permalink
Auto merge of #5646 - flip1995:rustup, r=matthiaskrgr
Browse files Browse the repository at this point in the history
Rustup

r? @phansch

changelog: none
  • Loading branch information
bors committed May 25, 2020
2 parents ce86f90 + b3a690f commit f162dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/missing_inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit f162dc3

Please sign in to comment.