about summary refs log tree commit diff
diff options
context:
space:
mode:
authorxiongmao86 <xiongmao86dev@sina.com>2020-01-07 16:11:34 +0800
committerxiongmao86 <xiongmao86dev@sina.com>2020-01-12 19:54:17 +0800
commit2909bc372fb51fe21be59aca3950eca9ad1514d8 (patch)
tree58c4a6ea03507d204ee54a4d65b4409d30c59e9c
parenta73822d3b919fa6d5dde92f345c12fd88ba9f56e (diff)
downloadrust-2909bc372fb51fe21be59aca3950eca9ad1514d8.tar.gz
rust-2909bc372fb51fe21be59aca3950eca9ad1514d8.zip
./util/dev update_lints.
-rw-r--r--clippy_lints/src/lib.rs3
-rw-r--r--src/lintlist/mod.rs4
2 files changed, 3 insertions, 4 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs
index 85cca4a77fe..9ee849ce162 100644
--- a/clippy_lints/src/lib.rs
+++ b/clippy_lints/src/lib.rs
@@ -1006,6 +1006,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
         LintId::of(&matches::WILDCARD_ENUM_MATCH_ARM),
         LintId::of(&mem_forget::MEM_FORGET),
         LintId::of(&methods::CLONE_ON_REF_PTR),
+        LintId::of(&methods::FILETYPE_IS_FILE),
         LintId::of(&methods::GET_UNWRAP),
         LintId::of(&methods::OPTION_EXPECT_USED),
         LintId::of(&methods::OPTION_UNWRAP_USED),
@@ -1200,7 +1201,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
         LintId::of(&methods::CLONE_DOUBLE_REF),
         LintId::of(&methods::CLONE_ON_COPY),
         LintId::of(&methods::EXPECT_FUN_CALL),
-        LintId::of(&methods::FILETYPE_IS_FILE),
         LintId::of(&methods::FILTER_NEXT),
         LintId::of(&methods::FLAT_MAP_IDENTITY),
         LintId::of(&methods::INEFFICIENT_TO_STRING),
@@ -1386,7 +1386,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
         LintId::of(&mem_replace::MEM_REPLACE_OPTION_WITH_NONE),
         LintId::of(&mem_replace::MEM_REPLACE_WITH_DEFAULT),
         LintId::of(&methods::CHARS_LAST_CMP),
-        LintId::of(&methods::FILETYPE_IS_FILE),
         LintId::of(&methods::INTO_ITER_ON_REF),
         LintId::of(&methods::ITER_CLONED_COLLECT),
         LintId::of(&methods::ITER_NTH_ZERO),
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 5dd82b66b8e..8554de78d85 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -562,8 +562,8 @@ pub const ALL_LINTS: [Lint; 346] = [
     },
     Lint {
         name: "filetype_is_file",
-        group: "style",
-        desc: "`FileType::is_file` is not recommended to test for readable file type.",
+        group: "restriction",
+        desc: "`FileType::is_file` is not recommended to test for readable file type",
         deprecation: None,
         module: "methods",
     },