Skip to content

Commit

Permalink
Clippy: skip check_host_compiler check in rustc testsuite
Browse files Browse the repository at this point in the history
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
  • Loading branch information
flip1995 committed Feb 28, 2025
1 parent 65eb2b2 commit f5851e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tools/clippy/tests/versioncheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ fn check_that_clippy_has_the_same_major_version_as_rustc() {

#[test]
fn check_host_compiler() {
// do not run this test inside the upstream rustc repo:
if option_env!("RUSTC_TEST_SUITE").is_some() {
return;
}

let version = rustc_tools_util::get_version_info!();
assert_eq!(version.host_compiler, Some("nightly".to_string()));
}

0 comments on commit f5851e7

Please sign in to comment.