Skip to content

Commit

Permalink
Add deny(unused_lifetimes) to all the crates that have deny(internal).
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Jun 11, 2019
1 parent 4a21968 commit 630ec88
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libarena/lib.rs
Expand Up @@ -13,6 +13,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#![feature(core_intrinsics)]
#![feature(dropck_eyepatch)]
Expand Down
1 change: 1 addition & 0 deletions src/libfmt_macros/lib.rs
Expand Up @@ -10,6 +10,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#![feature(nll)]
#![feature(rustc_private)]
Expand Down
1 change: 1 addition & 0 deletions src/librustc_allocator/lib.rs
Expand Up @@ -3,6 +3,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

pub mod expand;

Expand Down
1 change: 1 addition & 0 deletions src/librustc_driver/lib.rs
Expand Up @@ -18,6 +18,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

pub extern crate getopts;
#[cfg(unix)]
Expand Down
1 change: 1 addition & 0 deletions src/librustc_errors/lib.rs
Expand Up @@ -6,6 +6,7 @@
#![feature(optin_builtin_traits)]
#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#[allow(unused_extern_crates)]
extern crate serialize as rustc_serialize; // used by deriving
Expand Down
1 change: 1 addition & 0 deletions src/librustc_interface/lib.rs
Expand Up @@ -8,6 +8,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#![allow(unused_imports)]

Expand Down
1 change: 1 addition & 0 deletions src/librustc_metadata/lib.rs
Expand Up @@ -16,6 +16,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

extern crate libc;
#[allow(unused_extern_crates)]
Expand Down
1 change: 1 addition & 0 deletions src/librustc_passes/lib.rs
Expand Up @@ -13,6 +13,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#[macro_use]
extern crate rustc;
Expand Down
1 change: 1 addition & 0 deletions src/librustc_privacy/lib.rs
Expand Up @@ -2,6 +2,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#![feature(nll)]
#![feature(rustc_diagnostic_macros)]
Expand Down
1 change: 1 addition & 0 deletions src/librustc_resolve/lib.rs
Expand Up @@ -12,6 +12,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

pub use rustc::hir::def::{Namespace, PerNS};

Expand Down
1 change: 1 addition & 0 deletions src/librustc_save_analysis/lib.rs
Expand Up @@ -2,6 +2,7 @@
#![feature(nll)]
#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]
#![allow(unused_attributes)]

#![recursion_limit="256"]
Expand Down
1 change: 1 addition & 0 deletions src/librustc_typeck/lib.rs
Expand Up @@ -72,6 +72,7 @@ This API is completely unstable and subject to change.

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]
#![allow(explicit_outlives_requirements)]

#[macro_use] extern crate log;
Expand Down
1 change: 1 addition & 0 deletions src/libsyntax/lib.rs
Expand Up @@ -9,6 +9,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#![feature(bind_by_move_pattern_guards)]
#![feature(crate_visibility_modifier)]
Expand Down
1 change: 1 addition & 0 deletions src/libsyntax_pos/lib.rs
Expand Up @@ -8,6 +8,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#![feature(const_fn)]
#![feature(crate_visibility_modifier)]
Expand Down

0 comments on commit 630ec88

Please sign in to comment.