Skip to content

Commit

Permalink
Fix Clippy build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Feb 25, 2021
1 parent f64149d commit b303f7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions tests/versioncheck.rs
Expand Up @@ -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()
Expand Down

0 comments on commit b303f7d

Please sign in to comment.