about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-02-13 10:15:24 +0000
committerGitHub <noreply@github.com>2025-02-13 10:15:24 +0000
commit943d604e592ea00cb15b588d0756245823fd26b9 (patch)
tree25e3753dd8f4ef4fe0c60eca15d03ca1474c1f69 /tests
parent8ae47501551f8cf08930d7005779c075a77c6868 (diff)
parent8cac5b03f3fdc6906a037ccdd656161e4263e898 (diff)
downloadrust-943d604e592ea00cb15b588d0756245823fd26b9.tar.gz
rust-943d604e592ea00cb15b588d0756245823fd26b9.zip
Fix rustc_tools_util's `version.host_compiler` release channel, expose the rustc version, and add tests (#14123)
changelog: Fix rustc_tools_util's `version.host_compiler` release
channel, expose the rustc version, and add tests.

Previously the host_compiler would be set to "nighly" on the stable
channel. Generally, the field felt a bit neglected neither being printed
not tested.
Diffstat (limited to 'tests')
-rw-r--r--tests/versioncheck.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/versioncheck.rs b/tests/versioncheck.rs
index ed357137095..ea540d48a2b 100644
--- a/tests/versioncheck.rs
+++ b/tests/versioncheck.rs
@@ -90,3 +90,9 @@ fn check_that_clippy_has_the_same_major_version_as_rustc() {
         },
     }
 }
+
+#[test]
+fn check_host_compiler() {
+    let version = rustc_tools_util::get_version_info!();
+    assert_eq!(version.host_compiler, Some("nightly".to_string()));
+}