Skip to content

Commit d0f8a6b

Browse files
committed
Run update_lints
1 parent 91afe56 commit d0f8a6b

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
@@ -1414,6 +1414,7 @@ Released 2018-09-13
14141414
[`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
14151415
[`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
14161416
[`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
1417+
[`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
14171418
[`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
14181419
[`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
14191420
[`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 354 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
9+
[There are 355 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
@@ -308,6 +308,7 @@ pub mod unwrap;
308308
pub mod use_self;
309309
pub mod vec;
310310
pub mod wildcard_dependencies;
311+
pub mod wildcard_imports;
311312
pub mod write;
312313
pub mod zero_div_zero;
313314
// end lints modules, do not remove this comment, it’s used in `update_lints`
@@ -808,6 +809,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
808809
&use_self::USE_SELF,
809810
&vec::USELESS_VEC,
810811
&wildcard_dependencies::WILDCARD_DEPENDENCIES,
812+
&wildcard_imports::WILDCARD_IMPORTS,
811813
&write::PRINTLN_EMPTY_STRING,
812814
&write::PRINT_LITERAL,
813815
&write::PRINT_STDOUT,
@@ -1003,6 +1005,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10031005
let max_fn_params_bools = conf.max_fn_params_bools;
10041006
let max_struct_bools = conf.max_struct_bools;
10051007
store.register_early_pass(move || box excessive_bools::ExcessiveBools::new(max_struct_bools, max_fn_params_bools));
1008+
store.register_late_pass(|| box wildcard_imports::WildcardImports);
10061009

10071010
store.register_group(true, "clippy::restriction", Some("clippy_restriction"), vec![
10081011
LintId::of(&arithmetic::FLOAT_ARITHMETIC),
@@ -1097,6 +1100,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10971100
LintId::of(&unicode::NON_ASCII_LITERAL),
10981101
LintId::of(&unicode::UNICODE_NOT_NFC),
10991102
LintId::of(&unused_self::UNUSED_SELF),
1103+
LintId::of(&wildcard_imports::WILDCARD_IMPORTS),
11001104
]);
11011105

11021106
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; 354] = [
9+
pub const ALL_LINTS: [Lint; 355] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -2401,6 +2401,13 @@ pub const ALL_LINTS: [Lint; 354] = [
24012401
deprecation: None,
24022402
module: "matches",
24032403
},
2404+
Lint {
2405+
name: "wildcard_imports",
2406+
group: "pedantic",
2407+
desc: "lint `use _::*` statements",
2408+
deprecation: None,
2409+
module: "wildcard_imports",
2410+
},
24042411
Lint {
24052412
name: "wildcard_in_or_patterns",
24062413
group: "complexity",

0 commit comments

Comments
 (0)