Skip to content

Commit 9a06230

Browse files
author
Henri Lunnikivi
committed
Run update_lints
1 parent 731cca0 commit 9a06230

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,7 @@ Released 2018-09-13
15921592
[`extend_from_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_from_slice
15931593
[`extra_unused_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
15941594
[`fallible_impl_from`]: https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
1595+
[`field_reassign_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
15951596
[`filetype_is_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
15961597
[`filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
15971598
[`filter_map_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_next

README.md

Lines changed: 1 addition & 1 deletion
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 over 350 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
8+
[There are over 351 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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ mod excessive_bools;
194194
mod exit;
195195
mod explicit_write;
196196
mod fallible_impl_from;
197+
mod field_reassign_with_default;
197198
mod float_equality_without_abs;
198199
mod float_literal;
199200
mod floating_point_arithmetic;
@@ -553,6 +554,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
553554
&exit::EXIT,
554555
&explicit_write::EXPLICIT_WRITE,
555556
&fallible_impl_from::FALLIBLE_IMPL_FROM,
557+
&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT,
556558
&float_equality_without_abs::FLOAT_EQUALITY_WITHOUT_ABS,
557559
&float_literal::EXCESSIVE_PRECISION,
558560
&float_literal::LOSSY_FLOAT_LITERAL,
@@ -1164,6 +1166,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11641166
LintId::of(&eta_reduction::REDUNDANT_CLOSURE_FOR_METHOD_CALLS),
11651167
LintId::of(&excessive_bools::FN_PARAMS_EXCESSIVE_BOOLS),
11661168
LintId::of(&excessive_bools::STRUCT_EXCESSIVE_BOOLS),
1169+
LintId::of(&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT),
11671170
LintId::of(&functions::MUST_USE_CANDIDATE),
11681171
LintId::of(&functions::TOO_MANY_LINES),
11691172
LintId::of(&if_not_else::IF_NOT_ELSE),

src/lintlist/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
605605
deprecation: None,
606606
module: "fallible_impl_from",
607607
},
608+
Lint {
609+
name: "field_reassign_with_default",
610+
group: "pedantic",
611+
desc: "instance initialized with Default should have its fields set in the initializer",
612+
deprecation: None,
613+
module: "field_reassign_with_default",
614+
},
608615
Lint {
609616
name: "filetype_is_file",
610617
group: "restriction",

0 commit comments

Comments
 (0)