about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2019-06-11 12:48:58 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2019-06-11 14:11:58 +0300
commit7b353f215f75309d2ce28449efa9654ffe33df8c (patch)
treeaeccb91f93d4bdb259fc1ce44c23c29514054269
parent8dddfde6e3971437ff43e5f9fb6c424951c1fca2 (diff)
downloadrust-7b353f215f75309d2ce28449efa9654ffe33df8c.tar.gz
rust-7b353f215f75309d2ce28449efa9654ffe33df8c.zip
rustc_borrowck: deny(unused_lifetimes).
-rw-r--r--src/librustc_borrowck/borrowck/mod.rs2
-rw-r--r--src/librustc_borrowck/lib.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_borrowck/borrowck/mod.rs b/src/librustc_borrowck/borrowck/mod.rs
index 7dca47485bb..669fb9103aa 100644
--- a/src/librustc_borrowck/borrowck/mod.rs
+++ b/src/librustc_borrowck/borrowck/mod.rs
@@ -1487,7 +1487,7 @@ impl DataFlowOperator for LoanDataFlowOperator {
     }
 }
 
-impl<'tcx> fmt::Debug for InteriorKind {
+impl fmt::Debug for InteriorKind {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         match *self {
             InteriorField(mc::FieldIndex(_, info)) => write!(f, "{}", info),
diff --git a/src/librustc_borrowck/lib.rs b/src/librustc_borrowck/lib.rs
index 14bc77f380a..5d8b0cd14dd 100644
--- a/src/librustc_borrowck/lib.rs
+++ b/src/librustc_borrowck/lib.rs
@@ -3,6 +3,7 @@
 #![allow(non_camel_case_types)]
 #![deny(rust_2018_idioms)]
 #![deny(internal)]
+#![deny(unused_lifetimes)]
 
 #![feature(nll)]