Skip to content

Commit df64ea6

Browse files
committed
Auto merge of #5312 - joshtriplett:wildcard-prelude-documentation, r=flip1995
Document that wildcard_imports doesn't warn about `use ...::prelude::*;` changelog: Improve [`wildcard_imports`] documentation
2 parents ceb9b7d + f56b0a1 commit df64ea6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy_lints/src/wildcard_imports.rs

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ declare_clippy_lint! {
4343
///
4444
/// This can lead to confusing error messages at best and to unexpected behavior at worst.
4545
///
46+
/// Note that this will not warn about wildcard imports from modules named `prelude`; many
47+
/// crates (including the standard library) provide modules named "prelude" specifically
48+
/// designed for wildcard import.
49+
///
4650
/// **Known problems:** If macros are imported through the wildcard, this macro is not included
4751
/// by the suggestion and has to be added by hand.
4852
///

0 commit comments

Comments
 (0)