Skip to content

Commit 8d58612

Browse files
committed
Move EqOp into Operators lint pass
1 parent 257aaf3 commit 8d58612

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),
@@ -251,8 +249,10 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
251249
LintId::of(operators::BAD_BIT_MASK),
252250
LintId::of(operators::DOUBLE_COMPARISONS),
253251
LintId::of(operators::DURATION_SUBSEC),
252+
LintId::of(operators::EQ_OP),
254253
LintId::of(operators::INEFFECTIVE_BIT_MASK),
255254
LintId::of(operators::MISREFACTORED_ASSIGN_OP),
255+
LintId::of(operators::OP_REF),
256256
LintId::of(option_env_unwrap::OPTION_ENV_UNWRAP),
257257
LintId::of(overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL),
258258
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
@@ -136,8 +136,6 @@ store.register_lints(&[
136136
enum_variants::ENUM_VARIANT_NAMES,
137137
enum_variants::MODULE_INCEPTION,
138138
enum_variants::MODULE_NAME_REPETITIONS,
139-
eq_op::EQ_OP,
140-
eq_op::OP_REF,
141139
equatable_if_let::EQUATABLE_IF_LET,
142140
erasing_op::ERASING_OP,
143141
escape::BOXED_LOCAL,
@@ -420,10 +418,12 @@ store.register_lints(&[
420418
operators::BAD_BIT_MASK,
421419
operators::DOUBLE_COMPARISONS,
422420
operators::DURATION_SUBSEC,
421+
operators::EQ_OP,
423422
operators::FLOAT_ARITHMETIC,
424423
operators::INEFFECTIVE_BIT_MASK,
425424
operators::INTEGER_ARITHMETIC,
426425
operators::MISREFACTORED_ASSIGN_OP,
426+
operators::OP_REF,
427427
operators::VERBOSE_BIT_MASK,
428428
option_env_unwrap::OPTION_ENV_UNWRAP,
429429
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
@@ -22,7 +22,6 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
2222
LintId::of(doc::NEEDLESS_DOCTEST_MAIN),
2323
LintId::of(enum_variants::ENUM_VARIANT_NAMES),
2424
LintId::of(enum_variants::MODULE_INCEPTION),
25-
LintId::of(eq_op::OP_REF),
2625
LintId::of(eta_reduction::REDUNDANT_CLOSURE),
2726
LintId::of(float_literal::EXCESSIVE_PRECISION),
2827
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)