Skip to content

Commit c6d4421

Browse files
authored
Rollup merge of #102557 - Joshument:master, r=jyn514
fix issue with x.py setup running into explicit panic Fixes problem with [Issue #102555](#102555) causing `x.py` setup to fail. Simply requires `rustfmt` be downloaded a little later.
2 parents 3d71ff4 + 8bba0de commit c6d4421

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bootstrap/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,6 @@ impl Build {
656656
job::setup(self);
657657
}
658658

659-
// Download rustfmt early so that it can be used in rust-analyzer configs.
660-
let _ = &builder::Builder::new(&self).initial_rustfmt();
661659
self.maybe_update_submodules();
662660

663661
if let Subcommand::Format { check, paths } = &self.config.cmd {
@@ -672,6 +670,9 @@ impl Build {
672670
return setup::setup(&self.config, *profile);
673671
}
674672

673+
// Download rustfmt early so that it can be used in rust-analyzer configs.
674+
let _ = &builder::Builder::new(&self).initial_rustfmt();
675+
675676
{
676677
let builder = builder::Builder::new(&self);
677678
if let Some(path) = builder.paths.get(0) {

0 commit comments

Comments
 (0)