rust-clippy/tests/ui-toml
bors 855aa08de5 Auto merge of #12178 - mdm:modulo-arithmetic-comparison-to-zero, r=llogiq
Don't warn about modulo arithmetic when comparing to zero

closes #12006

By default, don't warn about modulo arithmetic when comparing to zero. This behavior is configurable via `clippy.toml`.

See discussion [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/.E2.9C.94.20Is.20issue.20.2312006.20worth.20implementing.3F)

changelog: [`modulo_arithmetic`]: By default don't lint when comparing the result of a modulo operation to zero.
2024-01-27 12:22:48 +00:00
..
absolute_paths Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
allow_mixed_uninlined_format_args Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
arithmetic_side_effects_allowed Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
array_size_threshold Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
await_holding_invalid_type Bless clippy. 2023-09-23 13:47:30 +00:00
bad_toml Bless clippy tests 2023-11-24 19:15:52 +01:00
bad_toml_type Bless clippy tests 2023-11-24 19:15:52 +01:00
borrow_interior_mutable_const Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyup 2023-10-21 14:16:11 +02:00
conf_deprecated_key Bless clippy tests 2023-11-24 19:15:52 +01:00
dbg_macro Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
decimal_literal_representation Bless clippy tests 2023-11-24 19:15:52 +01:00
declare_interior_mutable_const Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyup 2023-10-21 14:16:11 +02:00
disallowed_macros Merge commit '98363cbf6a7c3f8b571a7d92a3c645bb4376e4a6' into clippyup 2023-09-12 18:44:06 +02:00
disallowed_names_append Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
disallowed_names_replace Bless clippy tests 2023-11-24 19:15:52 +01:00
disallowed_script_idents Bless clippy tests 2023-11-24 19:15:52 +01:00
doc_valid_idents_append Bless clippy tests 2023-11-24 19:15:52 +01:00
doc_valid_idents_replace Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
duplicated_keys Bless clippy tests 2023-11-24 19:15:52 +01:00
duplicated_keys_deprecated Bless clippy tests 2023-11-24 19:15:52 +01:00
duplicated_keys_deprecated_2 Bless clippy tests 2023-11-24 19:15:52 +01:00
enum_variant_size Bless clippy tests 2023-11-24 19:15:52 +01:00
excessive_nesting Merge commit 'a859e5cc1ce100df22346a1005da30532d04de59' into clippyup 2023-12-16 14:12:50 +01:00
expect_used Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
explicit_iter_loop Merge commit '7671c283a50b5d1168841f3014b14000f01dd204' into clippyup 2023-09-25 11:28:58 +02:00
extra_unused_type_parameters
fn_params_excessive_bools Bless clippy tests 2023-11-24 19:15:52 +01:00
functions_maxlines Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
good_toml_no_false_negatives
ifs_same_cond Bless clippy tests 2023-11-24 19:15:52 +01:00
impl_trait_in_params Bless clippy tests 2023-11-24 19:15:52 +01:00
invalid_min_rust_version Bless clippy tests 2023-11-24 19:15:52 +01:00
item_name_repetitions Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyup 2023-10-21 14:16:11 +02:00
large_futures Bless clippy tests 2023-11-24 19:15:52 +01:00
large_include_file Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
large_stack_frames Bless clippy tests 2023-11-24 19:15:52 +01:00
large_types_passed_by_value Bless clippy tests 2023-11-24 19:15:52 +01:00
lint_decimal_readability Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
manual_let_else Bless clippy tests 2023-11-24 19:15:52 +01:00
max_suggested_slice_pattern_length Bless clippy tests 2023-11-24 19:15:52 +01:00
min_ident_chars Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
min_rust_version Warn if an item coming from more recent version than MSRV is used 2024-01-26 14:13:02 +01:00
missing_enforced_import_rename Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
module_inception Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
modulo_arithmetic Don't warn about modulo arithmetic when comparing to zero 2024-01-25 12:42:53 +01:00
mut_key
nonstandard_macro_braces Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
path_ends_with_ext Merge commit '7671c283a50b5d1168841f3014b14000f01dd204' into clippyup 2023-09-25 11:28:58 +02:00
print_macro Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
private-doc-errors Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
pub_crate_missing_docs Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyup 2023-10-21 14:16:11 +02:00
pub_underscore_fields Merge remote-tracking branch 'upstream/master' into rustup 2024-01-25 18:39:39 +01:00
result_large_err Bless clippy tests 2023-11-24 19:15:52 +01:00
semicolon_block Bless clippy tests 2023-11-24 19:15:52 +01:00
strict_non_send_fields_in_send_ty Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
struct_excessive_bools Bless clippy tests 2023-11-24 19:15:52 +01:00
suppress_lint_in_const Merge commit 'ac4c2094a6030530661bee3876e0228ddfeb6b8b' into clippy-subtree-sync 2023-12-28 19:33:07 +01:00
toml_disallow Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
toml_disallowed_methods Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
toml_disallowed_types Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
toml_trivially_copy Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
toml_unknown_key Don't warn about modulo arithmetic when comparing to zero 2024-01-25 12:42:53 +01:00
too_large_for_stack Bless clippy tests 2023-11-24 19:15:52 +01:00
too_many_arguments Bless clippy tests 2023-11-24 19:15:52 +01:00
type_complexity Bless clippy tests 2023-11-24 19:15:52 +01:00
type_repetition_in_bounds Bless clippy tests 2023-11-24 19:15:52 +01:00
undocumented_unsafe_blocks Merge commit '7671c283a50b5d1168841f3014b14000f01dd204' into clippyup 2023-09-25 11:28:58 +02:00
unnecessary_box_returns Bless clippy tests 2023-11-24 19:15:52 +01:00
unwrap_used Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
upper_case_acronyms_aggressive Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
vec_box_sized Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
verbose_bit_mask Bless clippy tests 2023-11-24 19:15:52 +01:00
wildcard_imports Bless clippy tests 2023-11-24 19:15:52 +01:00
zero_single_char_names
update-all-references.sh