Skip to content

Commit 5f3656c

Browse files
committedJun 11, 2019
Auto merge of #61735 - eddyb:must-use-life, r=oli-obk
Add deny(unused_lifetimes) to all the crates that have deny(internal). @Zoxc brought up, regarding #61722, that we don't force the removal of unused lifetimes. Turns out that it's not that bad to enable for compiler crates (I wonder why it's not `warn` by default?). I would've liked to enable `single_use_lifetimes` as well, but #53738 makes it unusable for now. For the `rustfmt` commit, I used rust-lang/rustfmt#1324 (comment), and manually filtered out some noise. r? @oli-obk cc @rust-lang/compiler
2 parents 8e948df + 1d720ec commit 5f3656c

File tree

79 files changed

+159
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+159
-151
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)]

0 commit comments

Comments
 (0)