Skip to content

Commit

Permalink
fix issue with x.py setup running into explicit panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshument committed Oct 1, 2022
1 parent 56a35bc commit 8bba0de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,6 @@ 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 {
Expand All @@ -670,6 +668,9 @@ impl Build {
return setup::setup(&self.config, *profile);
}

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

{
let builder = builder::Builder::new(&self);
if let Some(path) = builder.paths.get(0) {
Expand Down

0 comments on commit 8bba0de

Please sign in to comment.