diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-08-11 12:55:14 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-08-14 05:39:53 -0400 |
| commit | 2601c864878412814134f417b7a738e5ee8898f2 (patch) | |
| tree | 494a8734730f506a23e08e2b4f8c948565c375bb /src/bootstrap | |
| parent | e9b3a0176440fa1696c730b55d82e68e8e6c41f6 (diff) | |
| download | rust-2601c864878412814134f417b7a738e5ee8898f2.tar.gz rust-2601c864878412814134f417b7a738e5ee8898f2.zip | |
Handle cfg(bootstrap) throughout
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 5 | ||||
| -rw-r--r-- | src/bootstrap/builder.rs | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 54b689fb062..04a3dea5c87 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -132,10 +132,7 @@ fn main() { cmd.arg("-Dwarnings"); cmd.arg("-Drust_2018_idioms"); cmd.arg("-Dunused_lifetimes"); - // cfg(not(bootstrap)): Remove this during the next stage 0 compiler update. - // `-Drustc::internal` is a new feature and `rustc_version` mis-reports the `stage`. - let cfg_not_bootstrap = stage != "0" && crate_name != Some("rustc_version"); - if cfg_not_bootstrap && use_internal_lints(crate_name) { + if use_internal_lints(crate_name) { cmd.arg("-Zunstable-options"); cmd.arg("-Drustc::internal"); } diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index e54c9360bae..9e4cd5ebca7 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -145,7 +145,7 @@ impl StepDescription { only_hosts: S::ONLY_HOSTS, should_run: S::should_run, make_run: S::make_run, - name: unsafe { ::std::intrinsics::type_name::<S>() }, + name: std::any::type_name::<S>(), } } |
