Skip to content

Commit 147da94

Browse files
committed
Revert "rustc_driver: Print stage info in --version --verbose"
This reverts commit 555b021.
1 parent 04dfdd7 commit 147da94

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/librustc_driver/lib.rs

-16
Original file line numberDiff line numberDiff line change
@@ -481,21 +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 if cfg!(stage2) {
491-
Some("stage2")
492-
} else if cfg!(stage3) {
493-
Some("stage3")
494-
} else {
495-
None
496-
}
497-
}
498-
499484
/// Prints version information
500485
pub fn version(binary: &str, matches: &getopts::Matches) {
501486
let verbose = matches.opt_present("verbose");
@@ -508,7 +493,6 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
508493
println!("commit-date: {}", unw(commit_date_str()));
509494
println!("host: {}", config::host_triple());
510495
println!("release: {}", unw(release_str()));
511-
println!("stage: {}", unw(stage_str()));
512496
}
513497
}
514498

0 commit comments

Comments
 (0)