about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2021-02-25 11:25:45 +0100
committerflip1995 <philipp.krones@embecosm.com>2021-02-25 11:25:45 +0100
commitb303f7d6f9bcd3f0fbb7c3cec5dc3e0afdc84ac4 (patch)
tree0f2f1f3debbe08234dff7e8d10afeb03d012231f
parentf64149dd04514e850374d2b94ecc91ce18d1b39e (diff)
downloadrust-b303f7d6f9bcd3f0fbb7c3cec5dc3e0afdc84ac4.tar.gz
rust-b303f7d6f9bcd3f0fbb7c3cec5dc3e0afdc84ac4.zip
Fix Clippy build and test
-rw-r--r--Cargo.toml3
-rw-r--r--tests/versioncheck.rs6
2 files changed, 6 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 1d6bf1ea0eb..ea32a8edd1f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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
diff --git a/tests/versioncheck.rs b/tests/versioncheck.rs
index 1c954c57a85..922a8207cea 100644
--- a/tests/versioncheck.rs
+++ b/tests/versioncheck.rs
@@ -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()