Skip to content

Commit 23af253

Browse files
committed
Auto merge of rust-lang#11539 - taiki-e:enforced-import-renames, r=Centri3
Warn missing_enforced_import_renames by default Similar to rust-lang/rust-clippy#8261 that did the same thing to disallowed_methods & disallowed_types. This lint is also only triggered if import renames are defined in the `clippy.toml` file. changelog: Moved [`missing_enforced_import_renames`] to `style` (Now warn-by-default) [rust-lang#11539](rust-lang/rust-clippy#11539)
2 parents 090df7a + 77c121e commit 23af253

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clippy_lints/src/missing_enforced_import_rename.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ declare_clippy_lint! {
1717
/// Checks for imports that do not rename the item as specified
1818
/// in the `enforce-import-renames` config option.
1919
///
20+
/// Note: Even though this lint is warn-by-default, it will only trigger if
21+
/// import renames are defined in the clippy.toml file.
22+
///
2023
/// ### Why is this bad?
2124
/// Consistency is important, if a project has defined import
2225
/// renames they should be followed. More practically, some item names are too
@@ -38,7 +41,7 @@ declare_clippy_lint! {
3841
/// ```
3942
#[clippy::version = "1.55.0"]
4043
pub MISSING_ENFORCED_IMPORT_RENAMES,
41-
restriction,
44+
style,
4245
"enforce import renames"
4346
}
4447

0 commit comments

Comments
 (0)