diff options
| author | bors <bors@rust-lang.org> | 2020-05-25 16:42:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-25 16:42:50 +0000 |
| commit | f162dc3ea00219eb8118da9991ddec27a0a50b00 (patch) | |
| tree | afb0f625dc0f65e0c8c5719bf5e17e862fe0a62c | |
| parent | ce86f907ef647ff4cb8c733ec6aae63b69e444a7 (diff) | |
| parent | b3a690f5a1791dae79ab3dbbb3252e05f318adeb (diff) | |
| download | rust-f162dc3ea00219eb8118da9991ddec27a0a50b00.tar.gz rust-f162dc3ea00219eb8118da9991ddec27a0a50b00.zip | |
Auto merge of #5646 - flip1995:rustup, r=matthiaskrgr
Rustup r? @phansch changelog: none
| -rw-r--r-- | clippy_lints/src/missing_inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_inline.rs b/clippy_lints/src/missing_inline.rs index 5300fd2215b..3ad3d5aee4d 100644 --- a/clippy_lints/src/missing_inline.rs +++ b/clippy_lints/src/missing_inline.rs @@ -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, }) |
