Skip to content

Commit 50df2a0

Browse files
committed
Auto merge of #26863 - brson:revert-stageversion, r=alexcrichton
This reverts #26599, which puts the stage number in the output of `--version -v`, but is not supposed to put it in the 'stage2' compiler, which is what most people refer to the binary we deploy. The picture is not so clear though because of how stage 'promotions' happen in the build and also because the windows build deploys stage3, not stage2. cc @richo
2 parents fd8e175 + 147da94 commit 50df2a0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/librustc_driver/lib.rs

-14
Original file line numberDiff line numberDiff line change
@@ -481,17 +481,6 @@ pub fn commit_date_str() -> Option<&'static str> {
481481
option_env!("CFG_VER_DATE")
482482
}
483483

484-
/// Returns a stage string, such as "stage0".
485-
pub fn stage_str() -> Option<&'static str> {
486-
if cfg!(stage0) {
487-
Some("stage0")
488-
} else if cfg!(stage1) {
489-
Some("stage1")
490-
} else {
491-
None
492-
}
493-
}
494-
495484
/// Prints version information
496485
pub fn version(binary: &str, matches: &getopts::Matches) {
497486
let verbose = matches.opt_present("verbose");
@@ -504,9 +493,6 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
504493
println!("commit-date: {}", unw(commit_date_str()));
505494
println!("host: {}", config::host_triple());
506495
println!("release: {}", unw(release_str()));
507-
if let Some(stage) = stage_str() {
508-
println!("stage: {}", stage);
509-
}
510496
}
511497
}
512498

0 commit comments

Comments
 (0)