rust/tests/ui-toml
bors 21e6235b4c Auto merge of #10921 - Centri3:needless_if, r=blyxyas,Manishearth
Add `needless_if` lint

first off: Sorry about the large diff. Seems a ton of tests do this (understandably so).

this is basically everything I wanted in #10868, while it doesn't lint *all* unnecessary empty blocks, it lints needless if statements; which are basically the crux of the issue (for me) anyway. I've committed code that includes this far too many times 😅 hopefully clippy can help me out soon

closes #10868

changelog: New lint [`needless_if`]
2023-06-12 04:18:50 +00:00
..
allow_mixed_uninlined_format_args Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
arithmetic_side_effects_allowed [arithmetic-side-effects] Consider negative numbers and add more tests 2023-01-06 12:25:51 -03:00
array_size_threshold Fix array-size-threshold config deserialization error 2023-02-28 14:37:41 +00:00
await_holding_invalid_type Return multiple resolutions from def_path_res 2022-11-04 21:58:07 +00:00
bad_toml Add spans to clippy.toml error messages 2023-06-02 00:56:27 +01:00
bad_toml_type Add spans to clippy.toml error messages 2023-06-02 00:56:27 +01:00
conf_deprecated_key Add spans to clippy.toml error messages 2023-06-02 00:56:27 +01:00
dbg_macro Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
disallowed_macros Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
disallowed_names_append
disallowed_names_replace
doc_valid_idents_append
doc_valid_idents_replace
duplicated_keys Add spans to clippy.toml error messages 2023-06-02 00:56:27 +01:00
duplicated_keys_deprecated Add spans to clippy.toml error messages 2023-06-02 00:56:27 +01:00
duplicated_keys_deprecated_2 Add spans to clippy.toml error messages 2023-06-02 00:56:27 +01:00
excessive_nesting make cargo test pass 2023-06-10 09:39:53 -05:00
expect_used Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
extra_unused_type_parameters Add suggestions to extra_unused_type_parameters 2023-03-23 23:56:31 -04:00
fn_params_excessive_bools
functions_maxlines
good_toml_no_false_negatives
ifs_same_cond needless_else: new lint to check for empty else clauses 2023-05-22 11:52:26 +02:00
invalid_min_rust_version
large_futures Update clippy_lints/src/large_futures.rs 2023-03-29 08:47:32 +00:00
large_include_file
lint_decimal_readability
max_suggested_slice_pattern_length
min_rust_version
missing_enforced_import_rename
module_inception allow disabling module inception on private modules 2023-06-10 08:09:07 -05:00
mut_key Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
nonstandard_macro_braces Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
print_macro Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
pub_crate_missing_docs Address review comments 2023-02-17 09:09:44 -05:00
semicolon_block use //@ for commands in tests 2023-04-25 11:23:02 -05:00
strict_non_send_fields_in_send_ty
struct_excessive_bools
suppress_lint_in_const allow the lint in a bunch of tests 2023-06-06 22:56:57 +02:00
toml_disallow
toml_disallowed_methods allow the lint in a bunch of tests 2023-06-06 22:56:57 +02:00
toml_disallowed_types
toml_trivially_copy Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
toml_unknown_key Auto merge of #10917 - Centri3:module_inception, r=xFrednet 2023-06-10 13:21:48 +00:00
unwrap_used allow the lint in a bunch of tests 2023-06-06 22:56:57 +02:00
upper_case_acronyms_aggressive
vec_box_sized fix vec-box-size-threshold off-by-one error 2022-11-14 16:06:21 +01:00
zero_single_char_names
update-all-references.sh