about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-01 01:03:35 +0000
committerbors <bors@rust-lang.org>2022-10-01 01:03:35 +0000
commitc5b105dc9a14116248512ba6fec8d3f0f4f24f0f (patch)
treef035975eb6e744726d74854c9b57cd5d323e4055 /src
parent8ce3204af9463db3192ea1eb31c45c2f6d4b5ae6 (diff)
parent9f201d6820fcce65320e4af6351d34cc73a12db1 (diff)
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
Make fmt downloaded on every invocation of bootstrap

Fixes https://github.com/rust-lang/rust/issues/101306
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index c83490316b6..cb18e14fa36 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -654,6 +654,8 @@ impl Build {
             job::setup(self);
         }
 
+        // Download rustfmt early so that it can be used in rust-analyzer configs.
+        let _ = &builder::Builder::new(&self).initial_rustfmt();
         self.maybe_update_submodules();
 
         if let Subcommand::Format { check, paths } = &self.config.cmd {