diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-07-06 12:43:01 -0700 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-07-06 13:42:10 -0700 |
| commit | e66ac43ea4ca489486c5c5dc59974577449fad44 (patch) | |
| tree | ac2d94a2e86b29252e860126769535ec4de3bf23 | |
| parent | 555b021c6e531fc375c62160a176dcc4fe77b798 (diff) | |
| download | rust-e66ac43ea4ca489486c5c5dc59974577449fad44.tar.gz rust-e66ac43ea4ca489486c5c5dc59974577449fad44.zip | |
rustc_driver: Omit stage info for stage2+
| -rw-r--r-- | src/librustc_driver/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 9a9ac2706a6..36438ccc784 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -487,10 +487,6 @@ pub fn stage_str() -> Option<&'static str> { Some("stage0") } else if cfg!(stage1) { Some("stage1") - } else if cfg!(stage2) { - Some("stage2") - } else if cfg!(stage3) { - Some("stage3") } else { None } @@ -508,7 +504,9 @@ 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())); - println!("stage: {}", unw(stage_str())); + if let Some(stage) = stage_str() { + println!("stage: {}", stage); + } } } |
