Skip to content

Commit 61496ac

Browse files
committed
Run update_lints
1 parent cdc96e1 commit 61496ac

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
@@ -1362,6 +1362,7 @@ Released 2018-09-13
13621362
[`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
13631363
[`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
13641364
[`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
1365+
[`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
13651366
[`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
13661367
[`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
13671368
[`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
@@ -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 347 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
9+
[There are 348 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

+4
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ pub mod unwrap;
306306
pub mod use_self;
307307
pub mod vec;
308308
pub mod wildcard_dependencies;
309+
pub mod wildcard_imports;
309310
pub mod write;
310311
pub mod zero_div_zero;
311312
// end lints modules, do not remove this comment, it’s used in `update_lints`
@@ -800,6 +801,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
800801
&use_self::USE_SELF,
801802
&vec::USELESS_VEC,
802803
&wildcard_dependencies::WILDCARD_DEPENDENCIES,
804+
&wildcard_imports::WILDCARD_IMPORTS,
803805
&write::PRINTLN_EMPTY_STRING,
804806
&write::PRINT_LITERAL,
805807
&write::PRINT_STDOUT,
@@ -991,6 +993,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
991993
store.register_early_pass(|| box utils::internal_lints::ProduceIce);
992994
store.register_late_pass(|| box let_underscore::LetUnderscore);
993995
store.register_late_pass(|| box atomic_ordering::AtomicOrdering);
996+
store.register_late_pass(|| box wildcard_imports::WildcardImports);
994997

995998
store.register_group(true, "clippy::restriction", Some("clippy_restriction"), vec![
996999
LintId::of(&arithmetic::FLOAT_ARITHMETIC),
@@ -1082,6 +1085,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10821085
LintId::of(&unicode::NON_ASCII_LITERAL),
10831086
LintId::of(&unicode::UNICODE_NOT_NFC),
10841087
LintId::of(&unused_self::UNUSED_SELF),
1088+
LintId::of(&wildcard_imports::WILDCARD_IMPORTS),
10851089
]);
10861090

10871091
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; 347] = [
9+
pub const ALL_LINTS: [Lint; 348] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -2352,6 +2352,13 @@ pub const ALL_LINTS: [Lint; 347] = [
23522352
deprecation: None,
23532353
module: "matches",
23542354
},
2355+
Lint {
2356+
name: "wildcard_imports",
2357+
group: "pedantic",
2358+
desc: "lint `use _::*` statements",
2359+
deprecation: None,
2360+
module: "wildcard_imports",
2361+
},
23552362
Lint {
23562363
name: "wildcard_in_or_patterns",
23572364
group: "complexity",

0 commit comments

Comments
 (0)