rust/clippy_lints/src
bors c9ddcf0d06 Auto merge of #10822 - Alexendoo:needless-else-cfg, r=llogiq
Ignore `#[cfg]`'d out code in `needless_else`

changelog: none (same release as #10810)

`#[cfg]` making things fun once more

This lead me to think about macro calls that expand to nothing as well, but apparently they produce an empty stmt in the AST so are already handled, added a test for that

r? `@llogiq`
2023-05-27 10:09:51 +00:00
..
cargo Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
casts Auto merge of #10779 - Centri3:ptr_cast_constness, r=llogiq 2023-05-23 21:40:50 +00:00
functions Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
loops Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
matches redundant pattern matches! result 2023-05-26 15:38:38 +02:00
methods Merge remote-tracking branch 'upstream/master' into rustup 2023-05-20 15:32:20 +02:00
misc_early Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
operators Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
transmute Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
types Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
unit_types Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
utils Merge remote-tracking branch 'upstream/master' into rustup 2023-05-20 15:32:20 +02:00
allow_attributes.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
almost_complete_range.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
approx_const.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
as_conversions.rs Merge commit '3c7e7dbc15' into clippyup 2022-07-28 19:08:22 +02:00
asm_syntax.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
assertions_on_constants.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
assertions_on_result_states.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
async_yields_async.rs Merge commit 'b52fb5234c' into clippyup 2022-09-09 13:36:26 +02:00
attrs.rs Add check for empty cfg all condition 2023-05-20 00:37:08 +02:00
await_holding_invalid.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
blocks_in_if_conditions.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
bool_assert_comparison.rs Alloc hir::Lit in an arena to remove the destructor from Expr 2023-04-16 15:35:51 +00:00
bool_to_int_with_if.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
booleans.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
borrow_deref_ref.rs Ignore borrow_deref_ref warnings in code from procedural macros. 2023-05-07 12:35:17 +01:00
box_default.rs Don't suggest unnameable types in box_default, let_underscore_untyped 2023-05-18 18:51:27 +00:00
checked_conversions.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
cognitive_complexity.rs Use local key in providers 2023-03-21 15:38:51 +00:00
collapsible_if.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
collection_is_never_read.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
comparison_chain.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
copies.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
copy_iterator.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
crate_in_macro_def.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
create_dir.rs Merge commit '2b2190cb56' into clippyup 2022-08-11 19:42:16 +02:00
dbg_macro.rs handle nested macros and add tests for them 2023-05-15 21:45:28 +02:00
declared_lints.rs Auto merge of #10779 - Centri3:ptr_cast_constness, r=llogiq 2023-05-23 21:40:50 +00:00
default.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
default_constructed_unit_structs.rs [default_constructed_unit_structs]: do not lint type aliases 2023-05-22 16:13:23 +02:00
default_instead_of_iter_empty.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
default_numeric_fallback.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
default_union_representation.rs Allow LocalDefId as the argument to def_path_str 2023-04-21 22:27:20 +00:00
deprecated_lints.rs Merge commit '0cb0f76368' into clippyup 2022-06-30 10:50:09 +02:00
dereference.rs IAT: Introduce AliasKind::Inherent 2023-05-04 16:59:10 +02:00
derivable_impls.rs Use local key in providers 2023-03-21 15:38:51 +00:00
derive.rs Use ty::TraitRef::new in clippy 2023-04-25 16:31:51 +00:00
disallowed_macros.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
disallowed_methods.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
disallowed_names.rs Merge commit '2b2190cb56' into clippyup 2022-08-11 19:42:16 +02:00
disallowed_script_idents.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
disallowed_types.rs rustc_hir: Change representation of import paths to support multiple resolutions 2022-12-01 18:51:05 +03:00
doc.rs Revert "Dogfood missing_assert_message on Clippy" 2023-03-08 08:51:50 +00:00
double_parens.rs Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns. 2022-11-17 13:45:59 +11:00
drop_forget_ref.rs Drop uplifted clippy::forget_copy 2023-05-10 19:36:02 +02:00
duplicate_mod.rs Revert "Dogfood missing_assert_message on Clippy" 2023-03-08 08:51:50 +00:00
else_if_without_else.rs Merge commit 'd9ddce8a22' into clippyup 2022-06-04 13:34:07 +02:00
empty_drop.rs Merge commit 'fdb84cbfd2' into clippyup 2022-07-18 09:39:37 +02:00
empty_enum.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
empty_structs_with_brackets.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
entry.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
enum_clike.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
enum_variants.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
equatable_if_let.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
escape.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
eta_reduction.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
excessive_bools.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
exhaustive_items.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
exit.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
explicit_write.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
extra_unused_type_parameters.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
fallible_impl_from.rs change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
float_literal.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
floating_point_arithmetic.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
fn_null_check.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
format.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
format_args.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
format_impl.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
format_push_string.rs Rm diagnostic item, use lang item 2022-11-18 06:16:20 +00:00
formatting.rs Spelling 2023-04-23 10:52:27 -04:00
from_over_into.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
from_raw_with_void_ptr.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
from_str_radix_10.rs Rm diagnostic item, use lang item 2022-11-18 06:16:20 +00:00
future_not_send.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
if_let_mutex.rs separate the receiver from arguments in HIR under /clippy 2022-09-05 22:25:57 +09:00
if_not_else.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
if_then_some_else_none.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
implicit_hasher.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
implicit_return.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
implicit_saturating_add.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
implicit_saturating_sub.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
inconsistent_struct_constructor.rs Merge commit '149392b0ba' into clippyup 2023-02-25 19:28:50 -05:00
index_refutable_slice.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
indexing_slicing.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
infinite_iter.rs Remove box expressions from HIR 2023-03-14 17:18:26 +00:00
inherent_impl.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
inherent_to_string.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
init_numbered_fields.rs Merge commit '7c21f91b15' into clippyup 2022-05-05 15:12:52 +01:00
inline_fn_without_body.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
instant_subtraction.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
int_plus_one.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
invalid_upcast_comparisons.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
invalid_utf8_in_unchecked.rs Add StrStyle to ast::LitKind::ByteStr. 2022-12-02 10:38:58 +11:00
items_after_statements.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
items_after_test_module.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
iter_not_returning_iterator.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
large_const_arrays.rs Use target instead of machine for mir interpreter integer handling. 2023-02-15 08:56:18 +00:00
large_enum_variant.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
large_futures.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
large_include_file.rs Add StrStyle to ast::LitKind::ByteStr. 2022-12-02 10:38:58 +11:00
large_stack_arrays.rs consider array initializer for large_stack_arrays 2023-05-21 15:02:51 +02:00
len_zero.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
let_if_seq.rs Update tooling 2022-10-27 18:41:26 +04:00
let_underscore.rs Don't suggest unnameable types in box_default, let_underscore_untyped 2023-05-18 18:51:27 +00:00
let_with_type_underscore.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
lib.deprecated.rs Merge commit 'b7f3f7f608' into clippyup 2021-10-07 11:21:30 +02:00
lib.rs needless_else: new lint to check for empty else clauses 2023-05-22 11:52:26 +02:00
lifetimes.rs Merge commit '149392b0ba' into clippyup 2023-02-25 19:28:50 -05:00
lines_filter_map_ok.rs Add missing word "are" 2023-05-06 16:21:45 +02:00
literal_representation.rs Merge commit '149392b0ba' into clippyup 2023-02-25 19:28:50 -05:00
macro_use.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-12-17 13:56:32 +01:00
main_recursion.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
manual_assert.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
manual_async_fn.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
manual_bits.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
manual_clamp.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
manual_is_ascii_check.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
manual_let_else.rs Auto merge of #10175 - koka831:fix/10171, r=giraffate 2023-05-18 01:21:27 +00:00
manual_main_separator_str.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
manual_non_exhaustive.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
manual_rem_euclid.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
manual_retain.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
manual_slice_size_calculation.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
manual_string_new.rs Rm diagnostic item, use lang item 2022-11-18 06:16:20 +00:00
manual_strip.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
map_unit_fn.rs change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata 2023-01-26 20:28:25 -07:00
match_result_ok.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
mem_forget.rs Merge commit 'e329249b6a' into clippyup 2022-02-26 14:26:21 +01:00
mem_replace.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
minmax.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
misc.rs new lint: clippy::ref_patterns 2023-05-08 13:20:33 +02:00
mismatching_type_param_order.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
missing_assert_message.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
missing_const_for_fn.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
missing_doc.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
missing_enforced_import_rename.rs rustc_hir: Change representation of import paths to support multiple resolutions 2022-12-01 18:51:05 +03:00
missing_inline.rs change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
missing_trait_methods.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
mixed_read_write_in_expression.rs rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
module_style.rs Merge commit '149392b0ba' into clippyup 2023-02-25 19:28:50 -05:00
multi_assignments.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
multiple_unsafe_ops_per_block.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
mut_key.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
mut_mut.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
mut_reference.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
mutable_debug_assertion.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
mutex_atomic.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
needless_arbitrary_self_type.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
needless_bool.rs needless_bool: do not simplify code if it loses comments 2023-05-10 21:19:24 +02:00
needless_borrowed_ref.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
needless_continue.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
needless_else.rs Ignore #[cfg]'d out code in needless_else 2023-05-24 21:45:46 +00:00
needless_for_each.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
needless_late_init.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
needless_parens_on_range_literals.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
needless_pass_by_value.rs Make elaborator generic 2023-04-06 23:30:22 +00:00
needless_question_mark.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
needless_update.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
neg_cmp_op_on_partial_ord.rs Fix clippy's missing substs 2022-11-21 20:39:29 +00:00
neg_multiply.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
new_without_default.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
no_effect.rs Remove box expressions from HIR 2023-03-14 17:18:26 +00:00
no_mangle_with_rust_abi.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
non_copy_const.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
non_expressive_names.rs Revert "Dogfood missing_assert_message on Clippy" 2023-03-08 08:51:50 +00:00
non_octal_unix_permissions.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
non_send_fields_in_send_ty.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
nonstandard_macro_braces.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
octal_escapes.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
only_used_in_recursion.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
option_env_unwrap.rs Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns. 2022-11-17 13:45:59 +11:00
option_if_let_else.rs Fix: Some suggestions generated by the option_if_let_else lint did not compile 2023-05-05 22:20:04 +02:00
overflow_check_conditional.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
panic_in_result_fn.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
panic_unimplemented.rs Merge commit '984330a6ee' into clippyup 2022-04-08 10:06:10 +01:00
partial_pub_fields.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
partialeq_ne_impl.rs Use local key in providers 2023-03-21 15:38:51 +00:00
partialeq_to_none.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
pass_by_ref_or_value.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
pattern_type_mismatch.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
permissions_set_readonly_false.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
precedence.rs Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns. 2022-11-17 13:45:59 +11:00
ptr.rs Rename some region-specific stuff 2023-02-16 03:39:59 +00:00
ptr_offset_with_cast.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
pub_use.rs Merge commit '7c21f91b15' into clippyup 2022-05-05 15:12:52 +01:00
question_mark.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
question_mark_used.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
ranges.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
rc_clone_in_vec_init.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
read_zero_byte_vec.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
redundant_async_block.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
redundant_clone.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
redundant_closure_call.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
redundant_else.rs Update clippy 2022-01-23 19:31:32 +08:00
redundant_field_names.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
redundant_pub_crate.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
redundant_slicing.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
redundant_static_lifetimes.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
ref_option_ref.rs Add (..) syntax for RTN 2023-03-28 01:14:28 +00:00
ref_patterns.rs new lint: clippy::ref_patterns 2023-05-08 13:20:33 +02:00
reference.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
regex.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
renamed_lints.rs Merge remote-tracking branch 'upstream/master' into rustup 2023-05-20 15:32:20 +02:00
return_self_not_must_use.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
returns.rs Display the needless_return suggestion 2023-05-23 23:47:04 +00:00
same_name_method.rs Merge branch 'master' into rustup 2023-02-25 17:43:19 -05:00
self_named_constructors.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
semicolon_block.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
semicolon_if_nothing_returned.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
serde_api.rs Box HIR Generics and Impl. 2022-04-30 13:51:49 +02:00
shadow.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
significant_drop_tightening.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
single_char_lifetime_names.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
single_component_path_imports.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
size_of_in_element_count.rs separate the receiver from arguments in HIR under /clippy 2022-09-05 22:25:57 +09:00
size_of_ref.rs Merge commit '3c06e0b1ce' into clippyup 2023-03-10 10:53:50 +01:00
slow_vector_initialization.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
std_instead_of_core.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
strings.rs fix example heading in string_slice 2023-05-16 18:11:20 -05:00
strlen_on_c_strings.rs rm diag item, use lang item 2023-05-02 10:32:07 +00:00
suspicious_doc_comments.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
suspicious_operation_groupings.rs Make clippy happy 2023-04-27 17:18:12 +00:00
suspicious_trait_impl.rs Use LanguageItems::require less 2022-10-29 16:04:10 -05:00
suspicious_xor_used_as_pow.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
swap.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
swap_ptr_to_ref.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
tabs_in_doc_comments.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
temporary_assignment.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
tests_outside_test_module.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
to_digit_is_some.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
trailing_empty_array.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
trait_bounds.rs Comments 2023-05-09 10:06:38 +01:00
undocumented_unsafe_blocks.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
unicode.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
uninit_vec.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
unit_return_expecting_ord.rs change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata 2023-01-26 20:28:25 -07:00
unnamed_address.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
unnecessary_box_returns.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
unnecessary_owned_empty_strings.rs Remove from_fn lang item 2023-02-26 09:15:54 +00:00
unnecessary_self_imports.rs rustc_ast_lowering: Stop lowering imports into multiple items 2022-12-01 18:51:20 +03:00
unnecessary_struct_initialization.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
unnecessary_wraps.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
unnested_or_patterns.rs Merge commit '149392b0ba' into clippyup 2023-02-25 19:28:50 -05:00
unsafe_removed_from_name.rs rustc_ast_lowering: Stop lowering imports into multiple items 2022-12-01 18:51:20 +03:00
unused_async.rs point to await expr in note 2023-05-23 17:22:23 +02:00
unused_io_amount.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
unused_peekable.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
unused_rounding.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
unused_self.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
unused_unit.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
unwrap.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
unwrap_in_result.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
upper_case_acronyms.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
use_self.rs Merge commit '83e42a2337' into clippyup 2023-04-11 15:31:08 +02:00
useless_conversion.rs move is_ty_alias to clippy_utils 2023-05-14 12:39:08 -05:00
vec.rs Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements. 2023-05-18 15:43:33 -04:00
vec_init_then_push.rs Merge commit 'b52fb5234c' into clippyup 2022-09-09 13:36:26 +02:00
wildcard_imports.rs Fix header 2023-05-08 18:38:41 +02:00
write.rs Merge commit 'a3ed905928' into clippyup 2023-04-23 13:28:56 +02:00
zero_div_zero.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
zero_sized_map_values.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00