Skip to content

Commit 66e8a29

Browse files
committed
Only set config.config to None when using default path
1 parent 13d4c61 commit 66e8a29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -926,8 +926,10 @@ impl Config {
926926
// Give a hard error if `--config` or `RUST_BOOTSTRAP_CONFIG` are set to a missing path,
927927
// but not if `config.toml` hasn't been created.
928928
let mut toml = if !using_default_path || toml_path.exists() {
929+
config.config = Some(toml_path.clone());
929930
get_toml(&toml_path)
930931
} else {
932+
config.config = None;
931933
TomlConfig::default()
932934
};
933935

@@ -942,7 +944,6 @@ impl Config {
942944
}
943945

944946
config.changelog_seen = toml.changelog_seen;
945-
config.config = if toml_path.exists() { Some(toml_path) } else { None };
946947

947948
let build = toml.build.unwrap_or_default();
948949

0 commit comments

Comments
 (0)