Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7c57093

Browse files
committedNov 2, 2022
Run update lint tool
1 parent 0ef6a65 commit 7c57093

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed
 

‎src/tools/clippy/clippy_lints/src/lib.register_all.rs

-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
289289
LintId::of(ranges::MANUAL_RANGE_CONTAINS),
290290
LintId::of(ranges::REVERSED_EMPTY_RANGES),
291291
LintId::of(rc_clone_in_vec_init::RC_CLONE_IN_VEC_INIT),
292-
LintId::of(read_zero_byte_vec::READ_ZERO_BYTE_VEC),
293292
LintId::of(redundant_clone::REDUNDANT_CLONE),
294293
LintId::of(redundant_closure_call::REDUNDANT_CLOSURE_CALL),
295294
LintId::of(redundant_field_names::REDUNDANT_FIELD_NAMES),

‎src/tools/clippy/clippy_lints/src/lib.register_correctness.rs

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ store.register_group(true, "clippy::correctness", Some("clippy_correctness"), ve
5959
LintId::of(ptr::INVALID_NULL_PTR_USAGE),
6060
LintId::of(ptr::MUT_FROM_REF),
6161
LintId::of(ranges::REVERSED_EMPTY_RANGES),
62-
LintId::of(read_zero_byte_vec::READ_ZERO_BYTE_VEC),
6362
LintId::of(regex::INVALID_REGEX),
6463
LintId::of(serde_api::SERDE_API_MISUSE),
6564
LintId::of(size_of_in_element_count::SIZE_OF_IN_ELEMENT_COUNT),

‎src/tools/clippy/clippy_lints/src/lib.register_nursery.rs

+3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ store.register_group(true, "clippy::nursery", Some("clippy_nursery"), vec![
2525
LintId::of(non_send_fields_in_send_ty::NON_SEND_FIELDS_IN_SEND_TY),
2626
LintId::of(nonstandard_macro_braces::NONSTANDARD_MACRO_BRACES),
2727
LintId::of(option_if_let_else::OPTION_IF_LET_ELSE),
28+
LintId::of(read_zero_byte_vec::READ_ZERO_BYTE_VEC),
2829
LintId::of(redundant_pub_crate::REDUNDANT_PUB_CRATE),
2930
LintId::of(regex::TRIVIAL_REGEX),
3031
LintId::of(strings::STRING_LIT_AS_BYTES),
3132
LintId::of(suspicious_operation_groupings::SUSPICIOUS_OPERATION_GROUPINGS),
3233
LintId::of(trailing_empty_array::TRAILING_EMPTY_ARRAY),
34+
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
35+
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),
3336
LintId::of(transmute::TRANSMUTE_UNDEFINED_REPR),
3437
LintId::of(unused_peekable::UNUSED_PEEKABLE),
3538
LintId::of(unused_rounding::UNUSED_ROUNDING),

‎src/tools/clippy/clippy_lints/src/lib.register_pedantic.rs

-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
8888
LintId::of(return_self_not_must_use::RETURN_SELF_NOT_MUST_USE),
8989
LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
9090
LintId::of(strings::STRING_ADD_ASSIGN),
91-
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
92-
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),
9391
LintId::of(transmute::TRANSMUTE_PTR_TO_PTR),
9492
LintId::of(types::LINKEDLIST),
9593
LintId::of(types::OPTION_OPTION),

‎src/tools/clippy/clippy_lints/src/read_zero_byte_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare_clippy_lint! {
4343
/// ```
4444
#[clippy::version = "1.63.0"]
4545
pub READ_ZERO_BYTE_VEC,
46-
pedantic,
46+
nursery,
4747
"checks for reads into a zero-length `Vec`"
4848
}
4949
declare_lint_pass!(ReadZeroByteVec => [READ_ZERO_BYTE_VEC]);

0 commit comments

Comments
 (0)
Please sign in to comment.