Fix Clippy build and test

This commit is contained in:
flip1995 2021-02-25 11:25:45 +01:00
parent 81af3468fe
commit a6dd9b9606
No known key found for this signature in database
GPG Key ID: 1CA0DF2AF59D68A5
2 changed files with 6 additions and 3 deletions

View File

@ -18,9 +18,6 @@ build = "build.rs"
edition = "2018"
publish = false
[workspace]
exclude = ["clippy_dev", "mini-macro", "target/lintcheck/crates"]
[[bin]]
name = "cargo-clippy"
test = false

View File

@ -3,6 +3,12 @@ use rustc_tools_util::VersionInfo;
#[test]
fn check_that_clippy_lints_and_clippy_utils_have_the_same_version_as_clippy() {
// do not run this test inside the upstream rustc repo:
// https://github.com/rust-lang/rust-clippy/issues/6683
if option_env!("RUSTC_TEST_SUITE").is_some() {
return;
}
let clippy_meta = cargo_metadata::MetadataCommand::new()
.no_deps()
.exec()