]> git.lizzy.rs Git - rust.git/blobdiff - src/lintlist/mod.rs
register new lint "tabs in doc comments" and update readme
[rust.git] / src / lintlist / mod.rs
index 5c92d69a49931cc19e5f27351bab98642fd00ac3..c82b239ee216a8f637bb79e662d594e257368bda 100644 (file)
@@ -6,7 +6,7 @@
 pub use lint::LINT_LEVELS;
 
 // begin lint list, do not remove this comment, it’s used in `update_lints`
-pub const ALL_LINTS: [Lint; 332] = [
+pub const ALL_LINTS: [Lint; 334] = [
     Lint {
         name: "absurd_extreme_comparisons",
         group: "correctness",
         deprecation: None,
         module: "formatting",
     },
+    Lint {
+        name: "tabs_in_doc_comments",
+        group: "style",
+        desc: "using tabs in doc comments is not recommended",
+        deprecation: None,
+        module: "tabs_in_doc_comments",
+    },
     Lint {
         name: "temporary_assignment",
         group: "complexity",
         deprecation: None,
         module: "methods",
     },
+    Lint {
+        name: "to_digit_is_some",
+        group: "style",
+        desc: "`char.is_digit()` is clearer",
+        deprecation: None,
+        module: "to_digit_is_some",
+    },
     Lint {
         name: "todo",
         group: "restriction",