Skip to content

Commit 7566a5c

Browse files
committed
Run update_lints
1 parent cba75c4 commit 7566a5c

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,7 @@ Released 2018-09-13
13611361
[`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
13621362
[`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
13631363
[`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
1364+
[`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
13641365
[`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
13651366
[`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
13661367
[`write_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline

clippy_lints/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ pub mod unwrap;
304304
pub mod use_self;
305305
pub mod vec;
306306
pub mod wildcard_dependencies;
307+
pub mod wildcard_imports;
307308
pub mod write;
308309
pub mod zero_div_zero;
309310
// end lints modules, do not remove this comment, it’s used in `update_lints`
@@ -797,6 +798,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
797798
&use_self::USE_SELF,
798799
&vec::USELESS_VEC,
799800
&wildcard_dependencies::WILDCARD_DEPENDENCIES,
801+
&wildcard_imports::WILDCARD_IMPORTS,
800802
&write::PRINTLN_EMPTY_STRING,
801803
&write::PRINT_LITERAL,
802804
&write::PRINT_STDOUT,
@@ -988,6 +990,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
988990
store.register_early_pass(|| box utils::internal_lints::ProduceIce);
989991
store.register_late_pass(|| box let_underscore::LetUnderscore);
990992
store.register_late_pass(|| box atomic_ordering::AtomicOrdering);
993+
store.register_late_pass(|| box wildcard_imports::WildcardImports);
991994

992995
store.register_group(true, "clippy::restriction", Some("clippy_restriction"), vec![
993996
LintId::of(&arithmetic::FLOAT_ARITHMETIC),
@@ -1078,6 +1081,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
10781081
LintId::of(&unicode::NON_ASCII_LITERAL),
10791082
LintId::of(&unicode::UNICODE_NOT_NFC),
10801083
LintId::of(&unused_self::UNUSED_SELF),
1084+
LintId::of(&wildcard_imports::WILDCARD_IMPORTS),
10811085
]);
10821086

10831087
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; 346] = [
9+
pub const ALL_LINTS: [Lint; 347] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -2345,6 +2345,13 @@ pub const ALL_LINTS: [Lint; 346] = [
23452345
deprecation: None,
23462346
module: "matches",
23472347
},
2348+
Lint {
2349+
name: "wildcard_imports",
2350+
group: "pedantic",
2351+
desc: "lint `use _::*` statements",
2352+
deprecation: None,
2353+
module: "wildcard_imports",
2354+
},
23482355
Lint {
23492356
name: "wildcard_in_or_patterns",
23502357
group: "complexity",

0 commit comments

Comments
 (0)