diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-23 22:17:27 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-28 18:47:02 +0300 |
| commit | 676d282dd3cd2dedba651e98c9a41af42983f08b (patch) | |
| tree | 859875de5c271f683d5b57bb9ec4911e44388f16 /src/bootstrap/bin | |
| parent | 434152157f9d73ad1899fb8da3a61aed6f8a46d6 (diff) | |
| download | rust-676d282dd3cd2dedba651e98c9a41af42983f08b.tar.gz rust-676d282dd3cd2dedba651e98c9a41af42983f08b.zip | |
Deny `unused_lifetimes` through rustbuild
Diffstat (limited to 'src/bootstrap/bin')
| -rw-r--r-- | src/bootstrap/bin/main.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 3 | ||||
| -rw-r--r-- | src/bootstrap/bin/rustdoc.rs | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/bootstrap/bin/main.rs b/src/bootstrap/bin/main.rs index da35c971f97..bd1a87c5744 100644 --- a/src/bootstrap/bin/main.rs +++ b/src/bootstrap/bin/main.rs @@ -6,7 +6,7 @@ //! directory in each respective module. // NO-RUSTC-WRAPPER -#![deny(warnings, rust_2018_idioms)] +#![deny(warnings, rust_2018_idioms, unused_lifetimes)] use std::env; diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 3888d0ef627..2e9044a8150 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -16,7 +16,7 @@ //! never get replaced. // NO-RUSTC-WRAPPER -#![deny(warnings, rust_2018_idioms)] +#![deny(warnings, rust_2018_idioms, unused_lifetimes)] use std::env; use std::ffi::OsString; @@ -129,6 +129,7 @@ fn main() { env::var_os("RUSTC_EXTERNAL_TOOL").is_none() { 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"); diff --git a/src/bootstrap/bin/rustdoc.rs b/src/bootstrap/bin/rustdoc.rs index 057daaf2dc4..ff38ee8788f 100644 --- a/src/bootstrap/bin/rustdoc.rs +++ b/src/bootstrap/bin/rustdoc.rs @@ -3,7 +3,7 @@ //! See comments in `src/bootstrap/rustc.rs` for more information. // NO-RUSTC-WRAPPER -#![deny(warnings, rust_2018_idioms)] +#![deny(warnings, rust_2018_idioms, unused_lifetimes)] use std::env; use std::process::Command; |
