Fix error in CrateType in latest Rust

This commit is contained in:
Nick Cameron 2018-08-05 09:35:08 +12:00
parent dde49f34a8
commit 99dcc70dcd

View File

@ -87,7 +87,7 @@ fn is_executable<'a, 'tcx>(cx: &LateContext<'a, 'tcx>) -> bool {
cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| { cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| {
match t { match t {
CrateType::CrateTypeExecutable => true, CrateType::Executable => true,
_ => false, _ => false,
} }
}) })