]> git.lizzy.rs Git - rust.git/blobdiff - tests/versioncheck.rs
Auto merge of #7473 - Jarcho:ice_7340, r=Manishearth
[rust.git] / tests / versioncheck.rs
index aadd2c1fb7fdb0c5ab4fcaaa050f2ad46af23dd1..1eaec4a50a6a6396f51a1d15969be3cd580c3190 100644 (file)
@@ -3,6 +3,12 @@
 
 #[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()