Skip to content

Commit 7dc3494

Browse files
committed
rustc_lint: deny(unused_lifetimes).
1 parent 26a0340 commit 7dc3494

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/librustc_lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ declare_lint! {
9696
declare_lint_pass!(BoxPointers => [BOX_POINTERS]);
9797

9898
impl BoxPointers {
99-
fn check_heap_type<'a, 'tcx>(&self, cx: &LateContext<'_, '_>, span: Span, ty: Ty<'_>) {
99+
fn check_heap_type(&self, cx: &LateContext<'_, '_>, span: Span, ty: Ty<'_>) {
100100
for leaf_ty in ty.walk() {
101101
if leaf_ty.is_box() {
102102
let m = format!("type uses owned (Box type) pointers: {}", ty);

src/librustc_lint/lib.rs

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

2222
#![deny(rust_2018_idioms)]
2323
#![deny(internal)]
24+
#![deny(unused_lifetimes)]
2425

2526
#[macro_use]
2627
extern crate rustc;

src/librustc_lint/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn report_bin_hex_error(
202202
// - `uX` => `uY`
203203
//
204204
// No suggestion for: `isize`, `usize`.
205-
fn get_type_suggestion<'a>(
205+
fn get_type_suggestion(
206206
t: Ty<'_>,
207207
val: u128,
208208
negative: bool,

0 commit comments

Comments
 (0)