Skip to content

Commit dc35841

Browse files
committed
Update lints
1 parent 5fa04bc commit dc35841

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ All notable changes to this project will be documented in this file.
842842
[`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
843843
[`single_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match
844844
[`single_match_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
845+
[`slow_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
845846
[`str_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
846847
[`string_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add
847848
[`string_add_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add_assign
@@ -880,6 +881,7 @@ All notable changes to this project will be documented in this file.
880881
[`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
881882
[`unreadable_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
882883
[`unsafe_removed_from_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_removed_from_name
884+
[`unsafe_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_vector_initialization
883885
[`unseparated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#unseparated_literal_suffix
884886
[`unstable_as_mut_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_mut_slice
885887
[`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We are currently in the process of discussing Clippy 1.0 via the RFC process in
99

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

12-
[There are 288 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
12+
[There are 290 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
1313

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

clippy_lints/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
711711
returns::NEEDLESS_RETURN,
712712
returns::UNUSED_UNIT,
713713
serde_api::SERDE_API_MISUSE,
714+
slow_vector_initialization::SLOW_VECTOR_INITIALIZATION,
715+
slow_vector_initialization::UNSAFE_VECTOR_INITIALIZATION,
714716
strings::STRING_LIT_AS_BYTES,
715717
suspicious_trait_impl::SUSPICIOUS_ARITHMETIC_IMPL,
716718
suspicious_trait_impl::SUSPICIOUS_OP_ASSIGN_IMPL,
@@ -957,6 +959,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
957959
ranges::ITERATOR_STEP_BY_ZERO,
958960
regex::INVALID_REGEX,
959961
serde_api::SERDE_API_MISUSE,
962+
slow_vector_initialization::UNSAFE_VECTOR_INITIALIZATION,
960963
suspicious_trait_impl::SUSPICIOUS_ARITHMETIC_IMPL,
961964
suspicious_trait_impl::SUSPICIOUS_OP_ASSIGN_IMPL,
962965
swap::ALMOST_SWAPPED,

0 commit comments

Comments
 (0)