Skip to content

Commit 4d426bb

Browse files
committed
rustc_target: deny(unused_lifetimes).
1 parent 912d22e commit 4d426bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/librustc_target/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ pub enum Primitive {
583583
Pointer
584584
}
585585

586-
impl<'a, 'tcx> Primitive {
586+
impl Primitive {
587587
pub fn size<C: HasDataLayout>(self, cx: &C) -> Size {
588588
let dl = cx.data_layout();
589589

src/librustc_target/lib.rs

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

1818
#![deny(rust_2018_idioms)]
1919
#![deny(internal)]
20+
#![deny(unused_lifetimes)]
2021

2122
#[macro_use] extern crate log;
2223

0 commit comments

Comments
 (0)