Skip to content

Commit 4229dbc

Browse files
committed
Run update_lints
1 parent ba1d50c commit 4229dbc

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,7 @@ Released 2018-09-13
14191419
[`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
14201420
[`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
14211421
[`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
1422+
[`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
14221423
[`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
14231424
[`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
14241425
[`write_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

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

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

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

clippy_lints/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ pub mod unwrap;
311311
pub mod use_self;
312312
pub mod vec;
313313
pub mod wildcard_dependencies;
314+
pub mod wildcard_imports;
314315
pub mod write;
315316
pub mod zero_div_zero;
316317
// end lints modules, do not remove this comment, it’s used in `update_lints`
@@ -813,6 +814,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
813814
&use_self::USE_SELF,
814815
&vec::USELESS_VEC,
815816
&wildcard_dependencies::WILDCARD_DEPENDENCIES,
817+
&wildcard_imports::WILDCARD_IMPORTS,
816818
&write::PRINTLN_EMPTY_STRING,
817819
&write::PRINT_LITERAL,
818820
&write::PRINT_STDOUT,
@@ -1009,6 +1011,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10091011
let max_struct_bools = conf.max_struct_bools;
10101012
store.register_early_pass(move || box excessive_bools::ExcessiveBools::new(max_struct_bools, max_fn_params_bools));
10111013
store.register_early_pass(|| box option_env_unwrap::OptionEnvUnwrap);
1014+
store.register_late_pass(|| box wildcard_imports::WildcardImports);
10121015

10131016
store.register_group(true, "clippy::restriction", Some("clippy_restriction"), vec![
10141017
LintId::of(&arithmetic::FLOAT_ARITHMETIC),
@@ -1105,6 +1108,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11051108
LintId::of(&unicode::NON_ASCII_LITERAL),
11061109
LintId::of(&unicode::UNICODE_NOT_NFC),
11071110
LintId::of(&unused_self::UNUSED_SELF),
1111+
LintId::of(&wildcard_imports::WILDCARD_IMPORTS),
11081112
]);
11091113

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

src/lintlist/mod.rs

+8-1
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; 356] = [
9+
pub const ALL_LINTS: [Lint; 357] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -2415,6 +2415,13 @@ pub const ALL_LINTS: [Lint; 356] = [
24152415
deprecation: None,
24162416
module: "matches",
24172417
},
2418+
Lint {
2419+
name: "wildcard_imports",
2420+
group: "pedantic",
2421+
desc: "lint `use _::*` statements",
2422+
deprecation: None,
2423+
module: "wildcard_imports",
2424+
},
24182425
Lint {
24192426
name: "wildcard_in_or_patterns",
24202427
group: "complexity",

0 commit comments

Comments
 (0)