Skip to content

Commit 7b353f2

Browse files
committed
rustc_borrowck: deny(unused_lifetimes).
1 parent 8dddfde commit 7b353f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/librustc_borrowck/borrowck/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ impl DataFlowOperator for LoanDataFlowOperator {
14871487
}
14881488
}
14891489

1490-
impl<'tcx> fmt::Debug for InteriorKind {
1490+
impl fmt::Debug for InteriorKind {
14911491
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
14921492
match *self {
14931493
InteriorField(mc::FieldIndex(_, info)) => write!(f, "{}", info),

src/librustc_borrowck/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![allow(non_camel_case_types)]
44
#![deny(rust_2018_idioms)]
55
#![deny(internal)]
6+
#![deny(unused_lifetimes)]
67

78
#![feature(nll)]
89

0 commit comments

Comments
 (0)