Merge pull request #3003 from nrc/update

Fix error in `CrateType` in latest Rust
This commit is contained in:
Manish Goregaokar 2018-08-04 15:02:48 -07:00 committed by GitHub
commit 7e5e4c1e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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| {
match t {
CrateType::CrateTypeExecutable => true,
CrateType::Executable => true,
_ => false,
}
})