diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index d2f2bc56bdc..6d7ae7e91a6 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -241,7 +241,7 @@ fn make_win_dist( } else { "gcc.exe" }; - let target_tools = [&compiler, "ld.exe", "dlltool.exe", "libwinpthread-1.dll"]; + let target_tools = [compiler, "ld.exe", "dlltool.exe", "libwinpthread-1.dll"]; let mut rustc_dlls = vec!["libwinpthread-1.dll"]; if target_triple.starts_with("i686-") { rustc_dlls.push("libgcc_s_dw2-1.dll");