force current stage when `--stage` is expilicitly used
Allows users to build std with stage2 compiler without using full-bootstrap.
Fixes #118233 Fixes #118918
r? @clubby789
(rustbot has picked a reviewer for you, use r? to override)
This PR modifies src/bootstrap/src/core/config.
If appropriate, please update CONFIG_CHANGE_HISTORY in src/bootstrap/src/utils/change_tracker.rs and change-id in config.example.toml.
Do you have any concerns on this? @Mark-Simulacrum
r? Mark-Simulacrum
@onur-ozkan is this still relevant, or has subsequent work replaced it? I'll need to page it back into cache but I think the open comment thread is still something I haven't had my mind changed on yet...
I need to check this again and see if we can improve the stage handling logic without adding explicit_stage field.
@rustbot author
:umbrella: The latest upstream changes (presumably #131988) made this pull request unmergeable. Please resolve the merge conflicts.