Skip to content

Commit

Permalink
Auto merge of rust-lang#5312 - joshtriplett:wildcard-prelude-document…
Browse files Browse the repository at this point in the history
…ation, r=flip1995

Document that wildcard_imports doesn't warn about `use ...::prelude::*;`

changelog: Improve [`wildcard_imports`] documentation
  • Loading branch information
bors committed Mar 14, 2020
2 parents ceb9b7d + f56b0a1 commit df64ea6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clippy_lints/src/wildcard_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit df64ea6

Please sign in to comment.