Skip to content

Commit 5a557f6

Browse files
author
Henri Lunnikivi
committed
Run update_lints
1 parent d3e6fef commit 5a557f6

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,7 @@ Released 2018-09-13
11421142
[`extra_unused_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
11431143
[`fallible_impl_from`]: https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
11441144
[`filetype_is_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
1145+
[`field_reassign_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
11451146
[`filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
11461147
[`filter_map_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_next
11471148
[`filter_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_next

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

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

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

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

clippy_lints/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ pub mod excessive_precision;
207207
pub mod exit;
208208
pub mod explicit_write;
209209
pub mod fallible_impl_from;
210+
pub mod field_reassign_with_default;
210211
pub mod format;
211212
pub mod formatting;
212213
pub mod functions;
@@ -536,6 +537,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
536537
&exit::EXIT,
537538
&explicit_write::EXPLICIT_WRITE,
538539
&fallible_impl_from::FALLIBLE_IMPL_FROM,
540+
&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT,
539541
&format::USELESS_FORMAT,
540542
&formatting::POSSIBLE_MISSING_COMMA,
541543
&formatting::SUSPICIOUS_ASSIGNMENT_FORMATTING,
@@ -1062,6 +1064,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10621064
LintId::of(&eta_reduction::REDUNDANT_CLOSURE_FOR_METHOD_CALLS),
10631065
LintId::of(&excessive_bools::FN_PARAMS_EXCESSIVE_BOOLS),
10641066
LintId::of(&excessive_bools::STRUCT_EXCESSIVE_BOOLS),
1067+
LintId::of(&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT),
10651068
LintId::of(&functions::MUST_USE_CANDIDATE),
10661069
LintId::of(&functions::TOO_MANY_LINES),
10671070
LintId::of(&if_not_else::IF_NOT_ELSE),

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; 355] = [
9+
pub const ALL_LINTS: [Lint; 356] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -567,6 +567,13 @@ pub const ALL_LINTS: [Lint; 355] = [
567567
deprecation: None,
568568
module: "methods",
569569
},
570+
Lint {
571+
name: "field_reassign_with_default",
572+
group: "pedantic",
573+
desc: "instance initialized with Default should have its fields set in the initializer",
574+
deprecation: None,
575+
module: "field_reassign_with_default",
576+
},
570577
Lint {
571578
name: "filter_map",
572579
group: "pedantic",

0 commit comments

Comments
 (0)