diff options
| author | Glenn Hope <glenn.alexander.hope@gmail.com> | 2020-05-07 14:48:27 -0700 |
|---|---|---|
| committer | Glenn Hope <glenn.alexander.hope@gmail.com> | 2020-05-09 11:09:38 -0700 |
| commit | a42a2bdac2a6c881f85ebdbce66e84d977c74cfa (patch) | |
| tree | fe16d8eb9a352fe99ae0419201ac6287233cc08d | |
| parent | ad92486d52fdede5c712dd27c868c942d8240704 (diff) | |
| download | rust-a42a2bdac2a6c881f85ebdbce66e84d977c74cfa.tar.gz rust-a42a2bdac2a6c881f85ebdbce66e84d977c74cfa.zip | |
Also have flag disable macro check
| -rw-r--r-- | clippy_lints/src/wildcard_imports.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/wildcard_imports.rs b/clippy_lints/src/wildcard_imports.rs index 43d0d1b9e96..843ddda0356 100644 --- a/clippy_lints/src/wildcard_imports.rs +++ b/clippy_lints/src/wildcard_imports.rs @@ -102,7 +102,7 @@ impl LateLintPass<'_, '_> for WildcardImports { self.test_modules_deep += 1; } if_chain! { - if !in_macro(item.span); + if self.warn_on_all || !in_macro(item.span); if let ItemKind::Use(use_path, UseKind::Glob) = &item.kind; if self.warn_on_all || !self.check_exceptions(use_path.segments); let used_imports = cx.tcx.names_imported_by_glob_use(item.hir_id.owner); |
