Skip to content

Commit 600901d

Browse files
committed
Clippy: skip check_host_compiler check in rustc testsuite
This test only makes sense to run in the Clippy repo In the Rust repo the name of the host_compiler is dev, not nightly
1 parent 04e01f2 commit 600901d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/clippy/tests/versioncheck.rs

+5
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ fn check_that_clippy_has_the_same_major_version_as_rustc() {
9393

9494
#[test]
9595
fn check_host_compiler() {
96+
// do not run this test inside the upstream rustc repo:
97+
if option_env!("RUSTC_TEST_SUITE").is_some() {
98+
return;
99+
}
100+
96101
let version = rustc_tools_util::get_version_info!();
97102
assert_eq!(version.host_compiler, Some("nightly".to_string()));
98103
}

0 commit comments

Comments
 (0)