Skip to content

Commit d476fd2

Browse files
committed
Run update_lints
1 parent e4713ea commit d476fd2

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ Released 2018-09-13
14151415
[`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
14161416
[`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
14171417
[`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
1418+
[`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
14181419
[`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
14191420
[`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
14201421
[`write_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
88

9-
[There are 355 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
9+
[There are 356 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
1010

1111
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
1212

clippy_lints/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ pub mod unwrap;
309309
pub mod use_self;
310310
pub mod vec;
311311
pub mod wildcard_dependencies;
312+
pub mod wildcard_imports;
312313
pub mod write;
313314
pub mod zero_div_zero;
314315
// end lints modules, do not remove this comment, it’s used in `update_lints`
@@ -810,6 +811,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
810811
&use_self::USE_SELF,
811812
&vec::USELESS_VEC,
812813
&wildcard_dependencies::WILDCARD_DEPENDENCIES,
814+
&wildcard_imports::WILDCARD_IMPORTS,
813815
&write::PRINTLN_EMPTY_STRING,
814816
&write::PRINT_LITERAL,
815817
&write::PRINT_STDOUT,
@@ -1006,6 +1008,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10061008
let max_struct_bools = conf.max_struct_bools;
10071009
store.register_early_pass(move || box excessive_bools::ExcessiveBools::new(max_struct_bools, max_fn_params_bools));
10081010
store.register_early_pass(|| box option_env_unwrap::OptionEnvUnwrap);
1011+
store.register_late_pass(|| box wildcard_imports::WildcardImports);
10091012

10101013
store.register_group(true, "clippy::restriction", Some("clippy_restriction"), vec![
10111014
LintId::of(&arithmetic::FLOAT_ARITHMETIC),
@@ -1100,6 +1103,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11001103
LintId::of(&unicode::NON_ASCII_LITERAL),
11011104
LintId::of(&unicode::UNICODE_NOT_NFC),
11021105
LintId::of(&unused_self::UNUSED_SELF),
1106+
LintId::of(&wildcard_imports::WILDCARD_IMPORTS),
11031107
]);
11041108

11051109
store.register_group(true, "clippy::internal", Some("clippy_internal"), vec![

src/lintlist/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub use lint::Lint;
66
pub use lint::LINT_LEVELS;
77

88
// begin lint list, do not remove this comment, it’s used in `update_lints`
9-
pub const ALL_LINTS: [Lint; 355] = [
9+
pub const ALL_LINTS: [Lint; 356] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -2408,6 +2408,13 @@ pub const ALL_LINTS: [Lint; 355] = [
24082408
deprecation: None,
24092409
module: "matches",
24102410
},
2411+
Lint {
2412+
name: "wildcard_imports",
2413+
group: "pedantic",
2414+
desc: "lint `use _::*` statements",
2415+
deprecation: None,
2416+
module: "wildcard_imports",
2417+
},
24112418
Lint {
24122419
name: "wildcard_in_or_patterns",
24132420
group: "complexity",

0 commit comments

Comments
 (0)