We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce86f90 + b3a690f commit f162dc3Copy full SHA for f162dc3
clippy_lints/src/missing_inline.rs
@@ -71,7 +71,7 @@ fn check_missing_inline_attrs(cx: &LateContext<'_, '_>, attrs: &[ast::Attribute]
71
fn is_executable(cx: &LateContext<'_, '_>) -> bool {
72
use rustc_session::config::CrateType;
73
74
- cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| match t {
+ cx.tcx.sess.crate_types().iter().any(|t: &CrateType| match t {
75
CrateType::Executable => true,
76
_ => false,
77
})
0 commit comments