-
-
Save albertlarsan68/bd298307c84efbfcc2ee2edfd50b2ba5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Cargo.lock b/Cargo.lock | |
index 5511d301775..f6a5fb14d53 100644 | |
--- a/Cargo.lock | |
+++ b/Cargo.lock | |
@@ -5607,6 +5607,7 @@ dependencies = [ | |
"lazy_static", | |
"miropt-test-tools", | |
"regex", | |
+ "semver", | |
"termcolor", | |
"walkdir", | |
] | |
diff --git a/src/tools/tidy/Cargo.toml b/src/tools/tidy/Cargo.toml | |
index 19812fc6f55..4dc830b9ad8 100644 | |
--- a/src/tools/tidy/Cargo.toml | |
+++ b/src/tools/tidy/Cargo.toml | |
@@ -13,6 +13,7 @@ lazy_static = "1" | |
walkdir = "2" | |
ignore = "0.4.18" | |
termcolor = "1.1.3" | |
+semver = "1.0" | |
[[bin]] | |
name = "rust-tidy" | |
diff --git a/src/tools/tidy/src/lib.rs b/src/tools/tidy/src/lib.rs | |
index 97e56720b98..35000320d1a 100644 | |
--- a/src/tools/tidy/src/lib.rs | |
+++ b/src/tools/tidy/src/lib.rs | |
@@ -70,3 +70,4 @@ fn tidy_error(bad: &mut bool, args: impl Display) -> std::io::Result<()> { | |
pub mod unit_tests; | |
pub mod unstable_book; | |
pub mod walk; | |
+pub mod x_version; | |
diff --git a/src/tools/tidy/src/main.rs b/src/tools/tidy/src/main.rs | |
index 0b9a1b37e94..8a256a6efda 100644 | |
--- a/src/tools/tidy/src/main.rs | |
+++ b/src/tools/tidy/src/main.rs | |
@@ -69,6 +69,7 @@ macro_rules! check { | |
} | |
} | |
+ check!(x_version, &root_path, &cargo); | |
check!(target_specific_tests, &tests_path); | |
// Checks that are done on the cargo workspace. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment