about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2023-09-20 19:05:51 +0900
committerTaiki Endo <te316e89@gmail.com>2023-09-20 19:05:51 +0900
commit77c121e8172377ca5a978a2f107735847dea33ed (patch)
treeab0da736eeea584a45d4d18cdc068a406c16ae90
parentddbe1100813d75898d6cde56a498813ac5799e9d (diff)
downloadrust-77c121e8172377ca5a978a2f107735847dea33ed.tar.gz
rust-77c121e8172377ca5a978a2f107735847dea33ed.zip
Warn missing_enforced_import_renames by default
-rw-r--r--clippy_lints/src/missing_enforced_import_rename.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_enforced_import_rename.rs b/clippy_lints/src/missing_enforced_import_rename.rs
index 96d83e114a4..fc088710e42 100644
--- a/clippy_lints/src/missing_enforced_import_rename.rs
+++ b/clippy_lints/src/missing_enforced_import_rename.rs
@@ -17,6 +17,9 @@ declare_clippy_lint! {
     /// Checks for imports that do not rename the item as specified
     /// in the `enforce-import-renames` config option.
     ///
+    /// Note: Even though this lint is warn-by-default, it will only trigger if
+    /// import renames are defined in the clippy.toml file.
+    ///
     /// ### Why is this bad?
     /// Consistency is important, if a project has defined import
     /// renames they should be followed. More practically, some item names are too
@@ -38,7 +41,7 @@ declare_clippy_lint! {
     /// ```
     #[clippy::version = "1.55.0"]
     pub MISSING_ENFORCED_IMPORT_RENAMES,
-    restriction,
+    style,
     "enforce import renames"
 }