From 2db293e2b4f952cca7ad0398ab5165890562cc0b Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Tue, 28 Dec 2021 22:24:49 -0500 Subject: [PATCH] Make `unused_lifetimes` lint warn-by-default There are no open issues related to this lint, and it would be useful to have turned on. --- compiler/rustc_lint_defs/src/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 27a06943cbc25..e40a77f542fbd 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -1540,7 +1540,7 @@ declare_lint! { /// Unused lifetime parameters may signal a mistake or unfinished code. /// Consider removing the parameter. pub UNUSED_LIFETIMES, - Allow, + Warn, "detects lifetime parameters that are never used" }