diff options
| author | KittyBorgX <krishnaramasimha12@gmail.com> | 2023-02-18 19:48:58 +0530 |
|---|---|---|
| committer | KittyBorgX <krishnaramasimha12@gmail.com> | 2023-02-19 11:59:01 +0530 |
| commit | cd3d4fcedf8e40b19843e1cc5d2988e452602513 (patch) | |
| tree | db3ebf65883606862e62b1240c6ad4d78dc3c931 /src/bootstrap | |
| parent | 3701bdc6333145410f009c83bd03f424eca05009 (diff) | |
Download rustfmt regardless of rustc being set in config.toml
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/config.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index cd027a4abb7..56f96734bbb 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -1315,15 +1315,6 @@ impl Config { } else { RustfmtState::Unavailable }; - } else { - // If using a system toolchain for bootstrapping, see if that has rustfmt available. - let host = config.build; - let rustfmt_path = config.initial_rustc.with_file_name(exe("rustfmt", host)); - let bin_root = config.out.join(host.triple).join("stage0"); - if !rustfmt_path.starts_with(&bin_root) { - // Using a system-provided toolchain; we shouldn't download rustfmt. - *config.initial_rustfmt.borrow_mut() = RustfmtState::SystemToolchain(rustfmt_path); - } } // Now that we've reached the end of our configuration, infer the |
