Fix Clippy build and test
This commit is contained in:
parent
f64149dd04
commit
b303f7d6f9
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user