mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
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
This commit is contained in:
commit
df64ea682c
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue