From f56b0a1b347342d6244bb533f820ed0f93244c4e Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Fri, 13 Mar 2020 17:07:11 +0000 Subject: [PATCH] Document that wildcard_imports doesn't warn about `use ...::prelude::*;` --- clippy_lints/src/wildcard_imports.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clippy_lints/src/wildcard_imports.rs b/clippy_lints/src/wildcard_imports.rs index 17e067a09..6f8cec7c0 100644 --- a/clippy_lints/src/wildcard_imports.rs +++ b/clippy_lints/src/wildcard_imports.rs @@ -43,6 +43,10 @@ declare_clippy_lint! { /// /// This can lead to confusing error messages at best and to unexpected behavior at worst. /// + /// Note that this will not warn about wildcard imports from modules named `prelude`; many + /// crates (including the standard library) provide modules named "prelude" specifically + /// designed for wildcard import. + /// /// **Known problems:** If macros are imported through the wildcard, this macro is not included /// by the suggestion and has to be added by hand. ///