Skip to content

Commit 8bba0de

Browse files
committed
fix issue with x.py setup running into explicit panic
1 parent 56a35bc commit 8bba0de

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
@@ -654,8 +654,6 @@ impl Build {
654654
job::setup(self);
655655
}
656656

657-
// Download rustfmt early so that it can be used in rust-analyzer configs.
658-
let _ = &builder::Builder::new(&self).initial_rustfmt();
659657
self.maybe_update_submodules();
660658

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

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

0 commit comments

Comments
 (0)