mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
Merge pull request #3003 from nrc/update
Fix error in `CrateType` in latest Rust
This commit is contained in:
commit
7e5e4c1e7e
@ -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