about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 28f212fb2b2..66ee41402ea 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -6,7 +6,7 @@ pub use lint::Lint;
 pub use lint::LINT_LEVELS;
 
 // begin lint list, do not remove this comment, it’s used in `update_lints`
-pub const ALL_LINTS: [Lint; 321] = [
+pub const ALL_LINTS: [Lint; 324] = [
     Lint {
         name: "absurd_extreme_comparisons",
         group: "correctness",
@@ -351,6 +351,13 @@ pub const ALL_LINTS: [Lint; 321] = [
         module: "double_comparison",
     },
     Lint {
+        name: "double_must_use",
+        group: "style",
+        desc: "`#[must_use]` attribute on a `#[must_use]`-returning function / method",
+        deprecation: None,
+        module: "functions",
+    },
+    Lint {
         name: "double_neg",
         group: "style",
         desc: "`--x`, which is a double negation of `x` and not a pre-decrement as in C/C++",
@@ -1156,6 +1163,20 @@ pub const ALL_LINTS: [Lint; 321] = [
         module: "inherent_impl",
     },
     Lint {
+        name: "must_use_candidate",
+        group: "pedantic",
+        desc: "function or method that could take a `#[must_use]` attribute",
+        deprecation: None,
+        module: "functions",
+    },
+    Lint {
+        name: "must_use_unit",
+        group: "style",
+        desc: "`#[must_use]` attribute on a unit-returning function / method",
+        deprecation: None,
+        module: "functions",
+    },
+    Lint {
         name: "mut_from_ref",
         group: "correctness",
         desc: "fns that create mutable refs from immutable ref args",