]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/setup.rs
Rollup merge of #103405 - chenyukang:yukang/fix-103381-and-if, r=compiler-errors
[rust.git] / src / bootstrap / setup.rs
index eb7da1bda73cb19d98fde4ca406a28883acb9a29..04480277fe0474cb8b3dd97993d8f4bdaf1162e0 100644 (file)
@@ -82,7 +82,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
 }
 
 pub fn setup(config: &Config, profile: Profile) {
-    let path = &config.config;
+    let path = &config.config.clone().unwrap_or(PathBuf::from("config.toml"));
 
     if path.exists() {
         eprintln!(