Skip to content

Commit e66ac43

Browse files
committed
rustc_driver: Omit stage info for stage2+
1 parent 555b021 commit e66ac43

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/librustc_driver/lib.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,6 @@ pub fn stage_str() -> Option<&'static str> {
487487
Some("stage0")
488488
} else if cfg!(stage1) {
489489
Some("stage1")
490-
} else if cfg!(stage2) {
491-
Some("stage2")
492-
} else if cfg!(stage3) {
493-
Some("stage3")
494490
} else {
495491
None
496492
}
@@ -508,7 +504,9 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
508504
println!("commit-date: {}", unw(commit_date_str()));
509505
println!("host: {}", config::host_triple());
510506
println!("release: {}", unw(release_str()));
511-
println!("stage: {}", unw(stage_str()));
507+
if let Some(stage) = stage_str() {
508+
println!("stage: {}", stage);
509+
}
512510
}
513511
}
514512

0 commit comments

Comments
 (0)