-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename config.toml to bootstrap.toml #127791
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
This PR modifies If appropriate, please update
Some changes occurred in src/doc/rustc/src/platform-support cc @Nilstrieb Some changes occurred in src/doc/unstable-book/src/compiler-flags/control-flow-guard.md cc @rust-lang/project-exploit-mitigations, @rcvalle This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp. This PR modifies If appropriate, please update |
☔ The latest upstream changes (presumably #127936) made this pull request unmergeable. Please resolve the merge conflicts. |
r? bootstrap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should do the similar work on https://github.com/rust-lang/rustc-dev-guide too before landing this one.
@@ -1305,22 +1305,27 @@ impl Config { | |||
|
|||
config.stage0_metadata = build_helper::stage0_parser::parse_stage0_file(); | |||
|
|||
// Read from `--config`, then `RUST_BOOTSTRAP_CONFIG`, then `./config.toml`, then `config.toml` in the root directory. | |||
// Read from `--config`, then `RUST_BOOTSTRAP_CONFIG`, then `./bootstrap.toml`, then `bootstrap.toml`, then `config.toml` in the root directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Read from `--config`, then `RUST_BOOTSTRAP_CONFIG`, then `./bootstrap.toml`, then `bootstrap.toml`, then `config.toml` in the root directory. | |
// Read from `--config`, then `RUST_BOOTSTRAP_CONFIG`, then `./bootstrap.toml` or `./config.toml`, then `bootstrap.toml` or `config.toml` in the root directory. |
let mut toml_path = toml_path.unwrap_or_else(|| PathBuf::from("config.toml")); | ||
let mut toml_path = toml_path.unwrap_or_else(|| PathBuf::from("bootstrap.toml")); | ||
if using_default_path && !toml_path.exists() { | ||
toml_path = config.src.join(toml_path); | ||
let bootstrap_toml_path = config.src.join(toml_path); | ||
if !bootstrap_toml_path.exists() { | ||
toml_path = config.src.join(PathBuf::from("config.toml")); | ||
} else { | ||
toml_path = bootstrap_toml_path; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only handles config.toml
from the root directory and it will break when config.toml
is present in the current directory when x
is invoked from outside of project root.
@@ -173,7 +173,7 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[ | |||
ChangeInfo { | |||
change_id: 123711, | |||
severity: ChangeSeverity::Warning, | |||
summary: "The deprecated field `changelog-seen` has been removed. Using that field in `config.toml` from now on will result in breakage.", | |||
summary: "The deprecated field `changelog-seen` has been removed. Using that field in `bootstrap.toml` from now on will result in breakage.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should revert the current changes in change_tracker.rs
and add a new change entry to inform people about this renaming work.
@rustbot author |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
151cae0
to
5b8b787
Compare
b1d19c8
to
f1e923a
Compare
☔ The latest upstream changes (presumably #120593) made this pull request unmergeable. Please resolve the merge conflicts. |
@LuuuXXX still interested in working on this? |
@LuuuXXX |
What does this PR try to resolve?
Cargo and bootstrap use the same name for their configuration file. this is confusing.
This pr attempts to disambiguate the naming, makes it easier to understand.
cc #126875
note: config.toml is still supported, so this doesn't break the downstreams.