Fix error in CrateType
in latest Rust
This commit is contained in:
parent
dde49f34a8
commit
99dcc70dcd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue