rust-clippy/clippy_lints/src
bors 9ddea51a73 Auto merge of #12912 - lochetti:fix_12824, r=dswij
Don't lint indexing_slicing lints on proc macros

This pr fixes https://github.com/rust-lang/rust-clippy/issues/12824

Even though the issue mentions the indexing case only, it was easy to apply the fix to the slicing case as well.

changelog: [`out_of_bounds_indexing`, `indexing_slicing`]: Don't lint on procedural macros.
2024-06-11 15:27:36 +00:00
..
attrs Update version attribute for 1.79 lints 2024-06-05 13:51:42 +02:00
cargo Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
casts Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
doc Fix grammer for the Safety documentation check 2024-06-05 14:11:56 -04:00
functions Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
loops For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
matches Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
methods Auto merge of #12915 - belyakov-am:lint/single_char_add_str, r=xFrednet 2024-06-11 11:08:45 +00:00
misc_early For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
operators Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
transmute Update version attribute for 1.79 lints 2024-06-05 13:51:42 +02:00
types For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
unit_types Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
utils Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
absolute_paths.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
allow_attributes.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
almost_complete_range.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
approx_const.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
arc_with_non_send_sync.rs Merge commit 'ca3b393750ee8d870bf3215dcf6509cafa5c0445' into clippy-subtree-update 2024-04-18 17:48:52 +02:00
as_conversions.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
asm_syntax.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
assertions_on_constants.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
assertions_on_result_states.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
assigning_clones.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
async_yields_async.rs Deal with additional wrapping of async closure body in clippy 2024-01-16 17:12:10 +00:00
await_holding_invalid.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
blocks_in_conditions.rs Don't lint blocks in closures for blocks_in_conditions 2024-06-07 11:21:38 +00:00
bool_assert_comparison.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
bool_to_int_with_if.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
booleans.rs Auto merge of #12700 - Luv-Ray:overly_complex_bool_expr, r=Jarcho 2024-06-05 19:47:43 +00:00
borrow_deref_ref.rs Merge commit 'a859e5cc1ce100df22346a1005da30532d04de59' into clippyup 2023-12-16 14:12:50 +01:00
box_default.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
checked_conversions.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
cognitive_complexity.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
collapsible_if.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
collection_is_never_read.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
comparison_chain.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
copies.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
copy_iterator.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
crate_in_macro_def.rs Rename ModSep to PathSep 2024-04-04 19:44:04 +02:00
create_dir.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
dbg_macro.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
declared_lints.rs Auto merge of #10632 - Alexendoo:needless-maybe-sized, r=Jarcho 2024-06-05 20:11:03 +00:00
default.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
default_constructed_unit_structs.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
default_instead_of_iter_empty.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
default_numeric_fallback.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
default_union_representation.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
deprecated_lints.rs deprecate mismatched_target_os 2024-06-01 14:11:07 +02:00
dereference.rs suggest adding parentheses when linting [let_and_return] and [needless_return] 2024-05-27 11:49:10 +08:00
derivable_impls.rs Always use ty:: qualifier for TyKind enum variants. 2024-04-16 16:29:13 +10:00
derive.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-05-30 09:44:14 +02:00
disallowed_macros.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
disallowed_methods.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
disallowed_names.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
disallowed_script_idents.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
disallowed_types.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
double_parens.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
drop_forget_ref.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
duplicate_mod.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
else_if_without_else.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
empty_drop.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
empty_enum.rs Rephrase and expand empty_enum documentation. 2024-05-22 18:03:18 -07:00
empty_with_brackets.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
endian_bytes.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
entry.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
enum_clike.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
equatable_if_let.rs Implement macro-based deref!() syntax for deref patterns 2024-03-21 11:42:49 -04:00
error_impl_error.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
escape.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
eta_reduction.rs Auto merge of #12865 - J-ZhengLi:issue12853, r=y21 2024-05-31 15:23:39 +00:00
excessive_bools.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
excessive_nesting.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
exhaustive_items.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
exit.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
explicit_write.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
extra_unused_type_parameters.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
fallible_impl_from.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
float_literal.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
floating_point_arithmetic.rs only run flop lints on inherent method calls 2024-06-03 21:42:00 +02:00
format.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
format_args.rs Fix to_string_in_format_args with macro call receiver 2024-05-24 19:27:39 +00:00
format_impl.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
format_push_string.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
formatting.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
four_forward_slashes.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
from_over_into.rs Clippy: Fix empty suggestion in from_over_into 2024-01-26 09:42:12 +01:00
from_raw_with_void_ptr.rs Always use ty:: qualifier for TyKind enum variants. 2024-04-16 16:29:13 +10:00
from_str_radix_10.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
future_not_send.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
if_let_mutex.rs Rename DiagnosticBuilder as Diag. 2024-02-28 08:55:35 +11:00
if_not_else.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
if_then_some_else_none.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
ignored_unit_patterns.rs Rename hir::Node::Local into hir::Node::LetStmt 2024-03-22 20:48:36 +01:00
impl_hash_with_borrow_str_and_bytes.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
implicit_hasher.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
implicit_return.rs Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
implicit_saturating_add.rs Always use ty:: qualifier for TyKind enum variants. 2024-04-16 16:29:13 +10:00
implicit_saturating_sub.rs Pack the u128 in LitKind::Int 2024-01-19 20:10:39 -08:00
implied_bounds_in_impls.rs Rename Generics::params to Generics::own_params 2024-05-09 20:58:46 -04:00
incompatible_msrv.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
inconsistent_struct_constructor.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
index_refutable_slice.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
indexing_slicing.rs Don't lint indexing_slicing lints on proc macros 2024-06-10 09:08:56 +01:00
ineffective_open_options.rs Merge commit 'ac4c2094a6030530661bee3876e0228ddfeb6b8b' into clippy-subtree-sync 2023-12-28 19:33:07 +01:00
infinite_iter.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
inherent_impl.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
inherent_to_string.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
init_numbered_fields.rs bug fix: lint numbered_fields message error 2024-05-22 15:26:32 +08:00
inline_fn_without_body.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
instant_subtraction.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
int_plus_one.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
integer_division_remainder_used.rs Update version attribute for 1.79 lints 2024-06-05 13:51:42 +02:00
invalid_upcast_comparisons.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
item_name_repetitions.rs Merge commit 'ca3b393750ee8d870bf3215dcf6509cafa5c0445' into clippy-subtree-update 2024-04-18 17:48:52 +02:00
items_after_statements.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
items_after_test_module.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
iter_not_returning_iterator.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
iter_over_hash_type.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
iter_without_into_iter.rs check return type of get and indexing 2024-05-30 11:45:57 +00:00
large_const_arrays.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
large_enum_variant.rs Always use ty:: qualifier for TyKind enum variants. 2024-04-16 16:29:13 +10:00
large_futures.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
large_include_file.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
large_stack_arrays.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
large_stack_frames.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
legacy_numeric_constants.rs Update version attribute for 1.79 lints 2024-06-05 13:51:42 +02:00
len_zero.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
let_if_seq.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
let_underscore.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
let_with_type_underscore.rs Rename hir::Local into hir::LetStmt 2024-03-22 20:36:21 +01:00
lib.deprecated.rs deprecate mismatched_target_os 2024-06-01 14:11:07 +02:00
lib.rs Auto merge of #10632 - Alexendoo:needless-maybe-sized, r=Jarcho 2024-06-05 20:11:03 +00:00
lifetimes.rs Merge commit 'ca3b393750ee8d870bf3215dcf6509cafa5c0445' into clippy-subtree-update 2024-04-18 17:48:52 +02:00
lines_filter_map_ok.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
literal_representation.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
macro_metavars_in_unsafe.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
macro_use.rs Remove unused structs in clippy 2024-03-10 23:33:00 +08:00
main_recursion.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
manual_assert.rs Simplify use crate::rustc_foo::bar occurrences. 2024-05-08 16:57:31 +10:00
manual_async_fn.rs Merge commit 'ac4c2094a6030530661bee3876e0228ddfeb6b8b' into clippy-subtree-sync 2023-12-28 19:33:07 +01:00
manual_bits.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
manual_clamp.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
manual_float_methods.rs Merge commit 'a859e5cc1ce100df22346a1005da30532d04de59' into clippyup 2023-12-16 14:12:50 +01:00
manual_hash_one.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
manual_is_ascii_check.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
manual_let_else.rs Rename hir::StmtKind::Local into hir::StmtKind::Let 2024-03-14 12:42:04 +01:00
manual_main_separator_str.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
manual_non_exhaustive.rs Give VariantData::Struct named fields, to clairfy recovered. 2023-12-20 00:07:34 +00:00
manual_range_patterns.rs Pack the u128 in LitKind::Int 2024-01-19 20:10:39 -08:00
manual_rem_euclid.rs Rename hir::Node::Local into hir::Node::LetStmt 2024-03-22 20:48:36 +01:00
manual_retain.rs Merge commit '9d6f41691ed9dbfaec2a2df2661c42451f2fe0d3' into clippy-subtree-update 2024-03-21 22:20:40 +01:00
manual_slice_size_calculation.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
manual_string_new.rs Merge commit 'a859e5cc1ce100df22346a1005da30532d04de59' into clippyup 2023-12-16 14:12:50 +01:00
manual_strip.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
manual_unwrap_or_default.rs Auto merge of #12889 - xFrednet:changelog-1-79, r=flip1995,dswij 2024-06-07 10:02:32 +00:00
map_unit_fn.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
match_result_ok.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
mem_replace.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
min_ident_chars.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
minmax.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
misc.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
mismatching_type_param_order.rs Rename Generics::params to Generics::own_params 2024-05-09 20:58:46 -04:00
missing_assert_message.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
missing_asserts_for_indexing.rs Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
missing_const_for_fn.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
missing_doc.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
missing_enforced_import_rename.rs Merge commit '26ac6aab023393c94edf42f38f6ad31196009643' 2024-01-11 17:27:03 +01:00
missing_fields_in_debug.rs Switch to for_each_expr in some lints 2024-05-19 16:47:02 +00:00
missing_inline.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
missing_trait_methods.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
mixed_read_write_in_expression.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
module_style.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
multi_assignments.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
multiple_bound_locations.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
multiple_unsafe_ops_per_block.rs Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
mut_key.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
mut_mut.rs Merge commit '9d6f41691ed9dbfaec2a2df2661c42451f2fe0d3' into clippy-subtree-update 2024-03-21 22:20:40 +01:00
mut_reference.rs Fix clippy 2024-04-15 18:48:12 -04:00
mutable_debug_assertion.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
mutex_atomic.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
needless_arbitrary_self_type.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
needless_bool.rs Add required parentheses around method receiver 2024-06-06 20:53:08 +02:00
needless_borrowed_ref.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
needless_borrows_for_generic_args.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
needless_continue.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
needless_else.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
needless_for_each.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
needless_if.rs Merge commit 'a859e5cc1ce100df22346a1005da30532d04de59' into clippyup 2023-12-16 14:12:50 +01:00
needless_late_init.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
needless_maybe_sized.rs Add needless_maybe_sized lint 2024-04-14 14:43:03 +00:00
needless_parens_on_range_literals.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
needless_pass_by_ref_mut.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
needless_pass_by_value.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
needless_question_mark.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
needless_update.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
neg_cmp_op_on_partial_ord.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
neg_multiply.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
new_without_default.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
no_effect.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
no_mangle_with_rust_abi.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
non_canonical_impls.rs fix: add test case, use a better conditional expression. 2024-05-30 23:40:17 +08:00
non_copy_const.rs Remove lazy_static mention 2024-06-07 12:51:37 +00:00
non_expressive_names.rs [many_single_char_names]: Deduplicate diagnostics 2024-05-26 22:56:23 -04:00
non_octal_unix_permissions.rs Merge commit '26ac6aab023393c94edf42f38f6ad31196009643' 2024-01-11 17:27:03 +01:00
non_send_fields_in_send_ty.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
nonstandard_macro_braces.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
octal_escapes.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
only_used_in_recursion.rs Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-subtree-update 2024-02-27 15:50:17 +01:00
option_env_unwrap.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
option_if_let_else.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
overflow_check_conditional.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
panic_in_result_fn.rs Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
panic_unimplemented.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
partial_pub_fields.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
partialeq_ne_impl.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
partialeq_to_none.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
pass_by_ref_or_value.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
pattern_type_mismatch.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
permissions_set_readonly_false.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
precedence.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
ptr.rs Remove DefId from EarlyParamRegion (clippy/smir) 2024-05-24 18:06:57 +01:00
ptr_offset_with_cast.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
pub_underscore_fields.rs Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-subtree-update 2024-02-27 15:50:17 +01:00
pub_use.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
question_mark.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
question_mark_used.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
ranges.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
raw_strings.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
rc_clone_in_vec_init.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
read_zero_byte_vec.rs Rename hir::Local into hir::LetStmt 2024-03-22 20:36:21 +01:00
redundant_async_block.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
redundant_clone.rs compiler: Lower fn call arg spans down to MIR 2024-01-15 19:07:11 +01:00
redundant_closure_call.rs Simplify use crate::rustc_foo::bar occurrences. 2024-05-08 16:57:31 +10:00
redundant_else.rs Add MatchKind member to the Match expr for pretty printing & fmt 2024-03-06 00:35:19 -05:00
redundant_field_names.rs Merge commit '93f0a9a91f58c9b2153868f458402155fb6265bb' into clippy-subtree-update 2024-03-07 17:19:29 +01:00
redundant_locals.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
redundant_pub_crate.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
redundant_slicing.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
redundant_static_lifetimes.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
redundant_type_annotations.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
ref_option_ref.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
ref_patterns.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
reference.rs ignore array from deref_addrof lint 2024-05-30 08:34:44 +07:00
regex.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
renamed_lints.rs Merge commit 'a859e5cc1ce100df22346a1005da30532d04de59' into clippyup 2023-12-16 14:12:50 +01:00
repeat_vec_with_capacity.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
reserve_after_initialization.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
return_self_not_must_use.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
returns.rs Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
same_name_method.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
self_named_constructors.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
semicolon_block.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
semicolon_if_nothing_returned.rs Simplify use crate::rustc_foo::bar occurrences. 2024-05-08 16:57:31 +10:00
serde_api.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
shadow.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
significant_drop_tightening.rs Normalize type aliases when checking significant drops. 2024-06-08 01:19:05 -04:00
single_call_fn.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
single_char_lifetime_names.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
single_component_path_imports.rs store the span of the nested part of the use tree in the ast 2024-04-14 18:45:28 +02:00
single_range_in_vec_init.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
size_of_in_element_count.rs And the tools too 2024-03-22 11:13:29 -04:00
size_of_ref.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
slow_vector_initialization.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
std_instead_of_core.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
strings.rs modify str_to_string to be machine-applicable 2024-06-01 09:05:27 +00:00
strlen_on_c_strings.rs Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-subtree-update 2024-02-27 15:50:17 +01:00
suspicious_operation_groupings.rs Add MatchKind member to the Match expr for pretty printing & fmt 2024-03-06 00:35:19 -05:00
suspicious_trait_impl.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
suspicious_xor_used_as_pow.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
swap.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
swap_ptr_to_ref.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
tabs_in_doc_comments.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
temporary_assignment.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
tests_outside_test_module.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
thread_local_initializer_can_be_made_const.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
to_digit_is_some.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
to_string_trait_impl.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
trailing_empty_array.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
trait_bounds.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
tuple_array_conversions.rs Rename hir::Node::Local into hir::Node::LetStmt 2024-03-22 20:48:36 +01:00
unconditional_recursion.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
undocumented_unsafe_blocks.rs Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
unicode.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
uninhabited_references.rs Rename AstConv to HIR ty lowering 2024-03-22 06:31:40 +01:00
uninit_vec.rs Rename hir::StmtKind::Local into hir::StmtKind::Let 2024-03-14 12:42:04 +01:00
unit_return_expecting_ord.rs split out AliasTy -> AliasTerm 2024-05-13 11:59:42 -04:00
unnamed_address.rs Drop clippy::vtable_address_comparisons 2023-12-06 09:03:48 +01:00
unnecessary_box_returns.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
unnecessary_map_on_constructor.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
unnecessary_owned_empty_strings.rs Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync 2023-12-01 18:21:58 +01:00
unnecessary_self_imports.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
unnecessary_struct_initialization.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
unnecessary_wraps.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
unnested_or_patterns.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
unsafe_removed_from_name.rs store the span of the nested part of the use tree in the ast 2024-04-14 18:45:28 +02:00
unused_async.rs hir: Remove hir::Map::{opt_parent_id,parent_id,get_parent,find_parent} 2024-02-10 12:24:46 +03:00
unused_io_amount.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
unused_peekable.rs Rename hir::Node::Local into hir::Node::LetStmt 2024-03-22 20:48:36 +01:00
unused_rounding.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
unused_self.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
unused_unit.rs Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-subtree-update 2024-02-27 15:50:17 +01:00
unwrap.rs Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
unwrap_in_result.rs Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
upper_case_acronyms.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
use_self.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
useless_conversion.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
vec.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
vec_init_then_push.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
visibility.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
wildcard_imports.rs Merge commit '9d6f41691ed9dbfaec2a2df2661c42451f2fe0d3' into clippy-subtree-update 2024-03-21 22:20:40 +01:00
write.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
zero_div_zero.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
zero_repeat_side_effects.rs Auto merge of #12889 - xFrednet:changelog-1-79, r=flip1995,dswij 2024-06-07 10:02:32 +00:00
zero_sized_map_values.rs Always use ty:: qualifier for TyKind enum variants. 2024-04-16 16:29:13 +10:00