about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-08 07:26:42 +0000
committerbors <bors@rust-lang.org>2015-07-08 07:26:42 +0000
commit50df2a09b8b9dd4883eb27d833a8482799175a3b (patch)
tree64020668418f1772472706044ac504e8213f6098
parentfd8e175c4e39537b16beb40c704a17fcf9796852 (diff)
parent147da94206f42a4b30fb1d401530519b58b4a050 (diff)
downloadrust-50df2a09b8b9dd4883eb27d833a8482799175a3b.tar.gz
rust-50df2a09b8b9dd4883eb27d833a8482799175a3b.zip
Auto merge of #26863 - brson:revert-stageversion, r=alexcrichton
This reverts https://github.com/rust-lang/rust/pull/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 
-rw-r--r--src/librustc_driver/lib.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index 36438ccc784..a9787987611 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -481,17 +481,6 @@ pub fn commit_date_str() -> Option<&'static str> {
     option_env!("CFG_VER_DATE")
 }
 
-/// Returns a stage string, such as "stage0".
-pub fn stage_str() -> Option<&'static str> {
-    if cfg!(stage0) {
-        Some("stage0")
-    } else if cfg!(stage1) {
-        Some("stage1")
-    } else {
-        None
-    }
-}
-
 /// Prints version information
 pub fn version(binary: &str, matches: &getopts::Matches) {
     let verbose = matches.opt_present("verbose");
@@ -504,9 +493,6 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
         println!("commit-date: {}", unw(commit_date_str()));
         println!("host: {}", config::host_triple());
         println!("release: {}", unw(release_str()));
-        if let Some(stage) = stage_str() {
-            println!("stage: {}", stage);
-        }
     }
 }