From ab05c48dbc815c9084d3ae9e7241e6fb87a060dd Mon Sep 17 00:00:00 2001 From: reez12g Date: Sun, 18 Sep 2022 17:32:12 +0900 Subject: [PATCH 1/2] Make fmt downloaded on every invocation of bootstrap --- src/bootstrap/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index cd421c249d8da..00fe899a2d4b4 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -668,6 +668,7 @@ impl Build { job::setup(self); } + let _ = &builder::Builder::new(&self).initial_rustfmt(); self.maybe_update_submodules(); if let Subcommand::Format { check, paths } = &self.config.cmd { From 9f201d6820fcce65320e4af6351d34cc73a12db1 Mon Sep 17 00:00:00 2001 From: Rento Ezoe Date: Sat, 1 Oct 2022 08:06:24 +0900 Subject: [PATCH 2/2] Add a comment to downloading fmt statement Co-authored-by: Joshua Nelson --- src/bootstrap/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 00fe899a2d4b4..8f02018b19e04 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -668,6 +668,7 @@ 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();