Fix error in CrateType
in latest Rust
This commit is contained in:
parent
dde49f34a8
commit
99dcc70dcd
@ -87,7 +87,7 @@ fn is_executable<'a, 'tcx>(cx: &LateContext<'a, 'tcx>) -> bool {
|
||||
|
||||
cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| {
|
||||
match t {
|
||||
CrateType::CrateTypeExecutable => true,
|
||||
CrateType::Executable => true,
|
||||
_ => false,
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user