Skip to content

Commit 727ebf6

Browse files
committed
Move EqOp into Operators lint pass
1 parent 826631a commit 727ebf6

File tree

11 files changed

+346
-357
lines changed

11 files changed

+346
-357
lines changed

clippy_lints/src/eq_op.rs

Lines changed: 0 additions & 321 deletions
This file was deleted.

clippy_lints/src/lib.register_all.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
6060
LintId::of(enum_clike::ENUM_CLIKE_UNPORTABLE_VARIANT),
6161
LintId::of(enum_variants::ENUM_VARIANT_NAMES),
6262
LintId::of(enum_variants::MODULE_INCEPTION),
63-
LintId::of(eq_op::EQ_OP),
64-
LintId::of(eq_op::OP_REF),
6563
LintId::of(erasing_op::ERASING_OP),
6664
LintId::of(escape::BOXED_LOCAL),
6765
LintId::of(eta_reduction::REDUNDANT_CLOSURE),
@@ -253,8 +251,10 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
253251
LintId::of(operators::BAD_BIT_MASK),
254252
LintId::of(operators::DOUBLE_COMPARISONS),
255253
LintId::of(operators::DURATION_SUBSEC),
254+
LintId::of(operators::EQ_OP),
256255
LintId::of(operators::INEFFECTIVE_BIT_MASK),
257256
LintId::of(operators::MISREFACTORED_ASSIGN_OP),
257+
LintId::of(operators::OP_REF),
258258
LintId::of(option_env_unwrap::OPTION_ENV_UNWRAP),
259259
LintId::of(overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL),
260260
LintId::of(partialeq_ne_impl::PARTIALEQ_NE_IMPL),

clippy_lints/src/lib.register_correctness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ store.register_group(true, "clippy::correctness", Some("clippy_correctness"), ve
2121
LintId::of(drop_forget_ref::FORGET_REF),
2222
LintId::of(drop_forget_ref::UNDROPPED_MANUALLY_DROPS),
2323
LintId::of(enum_clike::ENUM_CLIKE_UNPORTABLE_VARIANT),
24-
LintId::of(eq_op::EQ_OP),
2524
LintId::of(erasing_op::ERASING_OP),
2625
LintId::of(format_impl::RECURSIVE_FORMAT_IMPL),
2726
LintId::of(formatting::POSSIBLE_MISSING_COMMA),
@@ -50,6 +49,7 @@ store.register_group(true, "clippy::correctness", Some("clippy_correctness"), ve
5049
LintId::of(open_options::NONSENSICAL_OPEN_OPTIONS),
5150
LintId::of(operators::ABSURD_EXTREME_COMPARISONS),
5251
LintId::of(operators::BAD_BIT_MASK),
52+
LintId::of(operators::EQ_OP),
5353
LintId::of(operators::INEFFECTIVE_BIT_MASK),
5454
LintId::of(option_env_unwrap::OPTION_ENV_UNWRAP),
5555
LintId::of(ptr::INVALID_NULL_PTR_USAGE),

clippy_lints/src/lib.register_lints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ store.register_lints(&[
137137
enum_variants::ENUM_VARIANT_NAMES,
138138
enum_variants::MODULE_INCEPTION,
139139
enum_variants::MODULE_NAME_REPETITIONS,
140-
eq_op::EQ_OP,
141-
eq_op::OP_REF,
142140
equatable_if_let::EQUATABLE_IF_LET,
143141
erasing_op::ERASING_OP,
144142
escape::BOXED_LOCAL,
@@ -425,10 +423,12 @@ store.register_lints(&[
425423
operators::BAD_BIT_MASK,
426424
operators::DOUBLE_COMPARISONS,
427425
operators::DURATION_SUBSEC,
426+
operators::EQ_OP,
428427
operators::FLOAT_ARITHMETIC,
429428
operators::INEFFECTIVE_BIT_MASK,
430429
operators::INTEGER_ARITHMETIC,
431430
operators::MISREFACTORED_ASSIGN_OP,
431+
operators::OP_REF,
432432
operators::VERBOSE_BIT_MASK,
433433
option_env_unwrap::OPTION_ENV_UNWRAP,
434434
option_if_let_else::OPTION_IF_LET_ELSE,

clippy_lints/src/lib.register_style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
2121
LintId::of(doc::NEEDLESS_DOCTEST_MAIN),
2222
LintId::of(enum_variants::ENUM_VARIANT_NAMES),
2323
LintId::of(enum_variants::MODULE_INCEPTION),
24-
LintId::of(eq_op::OP_REF),
2524
LintId::of(eta_reduction::REDUNDANT_CLOSURE),
2625
LintId::of(float_literal::EXCESSIVE_PRECISION),
2726
LintId::of(from_over_into::FROM_OVER_INTO),
@@ -96,6 +95,7 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
9695
LintId::of(non_copy_const::DECLARE_INTERIOR_MUTABLE_CONST),
9796
LintId::of(non_expressive_names::JUST_UNDERSCORES_AND_DIGITS),
9897
LintId::of(operators::ASSIGN_OP_PATTERN),
98+
LintId::of(operators::OP_REF),
9999
LintId::of(ptr::CMP_NULL),
100100
LintId::of(ptr::PTR_ARG),
101101
LintId::of(ptr_eq::PTR_EQ),

0 commit comments

Comments
 (0)