about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-09-19 22:31:55 +1000
committerGitHub <noreply@github.com>2025-09-19 22:31:55 +1000
commita2c7008e15a007108fee37d97369d0a1f5ae8395 (patch)
tree664a9654703f5c161b698c2b0ab4c9eaf9997d94 /src
parente09cc55d2e611da39110d0070ae018a1fe3140bd (diff)
parent45e5c765c660463179128c5deaf6f56ff24f3578 (diff)
downloadrust-a2c7008e15a007108fee37d97369d0a1f5ae8395.tar.gz
rust-a2c7008e15a007108fee37d97369d0a1f5ae8395.zip
Rollup merge of #146738 - beepster4096:widnows, r=jieyouxu
Fix tidy spellchecking on Windows

Tidy should now check for executable with the right extension for the platform when installing tools
Diffstat (limited to 'src')
-rw-r--r--src/tools/tidy/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/lib.rs b/src/tools/tidy/src/lib.rs
index 2a9c3963d2d..f7920e3205a 100644
--- a/src/tools/tidy/src/lib.rs
+++ b/src/tools/tidy/src/lib.rs
@@ -237,7 +237,7 @@ pub fn ensure_version_or_cargo_install(
     if !cargo_exit_code.success() {
         return Err(io::Error::other("cargo install failed"));
     }
-    let bin_path = tool_bin_dir.join(bin_name);
+    let bin_path = tool_bin_dir.join(bin_name).with_extension(env::consts::EXE_EXTENSION);
     assert!(
         matches!(bin_path.try_exists(), Ok(true)),
         "cargo install did not produce the expected binary"