Skip to content

Commit 630ec88

Browse files
committed
Add deny(unused_lifetimes) to all the crates that have deny(internal).
1 parent 4a21968 commit 630ec88

File tree

14 files changed

+14
-0
lines changed

14 files changed

+14
-0
lines changed

src/libarena/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#![deny(rust_2018_idioms)]
1515
#![deny(internal)]
16+
#![deny(unused_lifetimes)]
1617

1718
#![feature(core_intrinsics)]
1819
#![feature(dropck_eyepatch)]

src/libfmt_macros/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#![deny(rust_2018_idioms)]
1212
#![deny(internal)]
13+
#![deny(unused_lifetimes)]
1314

1415
#![feature(nll)]
1516
#![feature(rustc_private)]

src/librustc_allocator/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#![deny(rust_2018_idioms)]
55
#![deny(internal)]
6+
#![deny(unused_lifetimes)]
67

78
pub mod expand;
89

src/librustc_driver/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#![deny(rust_2018_idioms)]
2020
#![deny(internal)]
21+
#![deny(unused_lifetimes)]
2122

2223
pub extern crate getopts;
2324
#[cfg(unix)]

src/librustc_errors/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#![feature(optin_builtin_traits)]
77
#![deny(rust_2018_idioms)]
88
#![deny(internal)]
9+
#![deny(unused_lifetimes)]
910

1011
#[allow(unused_extern_crates)]
1112
extern crate serialize as rustc_serialize; // used by deriving

src/librustc_interface/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#![deny(rust_2018_idioms)]
1010
#![deny(internal)]
11+
#![deny(unused_lifetimes)]
1112

1213
#![allow(unused_imports)]
1314

src/librustc_metadata/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#![deny(rust_2018_idioms)]
1818
#![deny(internal)]
19+
#![deny(unused_lifetimes)]
1920

2021
extern crate libc;
2122
#[allow(unused_extern_crates)]

src/librustc_passes/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#![deny(rust_2018_idioms)]
1515
#![deny(internal)]
16+
#![deny(unused_lifetimes)]
1617

1718
#[macro_use]
1819
extern crate rustc;

src/librustc_privacy/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#![deny(rust_2018_idioms)]
44
#![deny(internal)]
5+
#![deny(unused_lifetimes)]
56

67
#![feature(nll)]
78
#![feature(rustc_diagnostic_macros)]

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#![deny(rust_2018_idioms)]
1414
#![deny(internal)]
15+
#![deny(unused_lifetimes)]
1516

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

0 commit comments

Comments
 (0)