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

+1
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

+1
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

+1
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

+1
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

+1
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

+1
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

+1
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

+1
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

+1
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

+1
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

src/librustc_save_analysis/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![feature(nll)]
33
#![deny(rust_2018_idioms)]
44
#![deny(internal)]
5+
#![deny(unused_lifetimes)]
56
#![allow(unused_attributes)]
67

78
#![recursion_limit="256"]

src/librustc_typeck/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ This API is completely unstable and subject to change.
7272

7373
#![deny(rust_2018_idioms)]
7474
#![deny(internal)]
75+
#![deny(unused_lifetimes)]
7576
#![allow(explicit_outlives_requirements)]
7677

7778
#[macro_use] extern crate log;

src/libsyntax/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#![deny(rust_2018_idioms)]
1111
#![deny(internal)]
12+
#![deny(unused_lifetimes)]
1213

1314
#![feature(bind_by_move_pattern_guards)]
1415
#![feature(crate_visibility_modifier)]

src/libsyntax_pos/lib.rs

+1
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
#![feature(const_fn)]
1314
#![feature(crate_visibility_modifier)]

0 commit comments

Comments
 (0)