rust/clippy_lints/src/matches
Nicholas Nethercote a16dbd7339 Prefer DiagnosticBuilder over Diagnostic in diagnostic modifiers.
There are lots of functions that modify a diagnostic. This can be via a
`&mut Diagnostic` or a `&mut DiagnosticBuilder`, because the latter type
wraps the former and impls `DerefMut`.

This commit converts all the `&mut Diagnostic` occurrences to `&mut
DiagnosticBuilder`. This is a step towards greatly simplifying
`Diagnostic`. Some of the relevant function are made generic, because
they deal with both errors and warnings. No function bodies are changed,
because all the modifier methods are available on both `Diagnostic` and
`DiagnosticBuilder`.
2024-02-19 20:23:20 +11:00
..
collapsible_match.rs Update clippy for hir::Guard removal 2024-01-05 10:56:59 +00:00
infallible_destructuring_match.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
manual_filter.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
manual_map.rs Merge commit 'd9c24d1b1e' into clippyup 2023-07-17 10:22:32 +02:00
manual_unwrap_or.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
manual_utils.rs Merge commit 'ac4c2094a6' into clippy-subtree-sync 2023-12-28 19:33:07 +01:00
match_as_ref.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
match_bool.rs Merge commit '371120bdbf' into clippyup 2023-05-05 17:45:49 +02:00
match_like_matches.rs Update clippy for hir::Guard removal 2024-01-05 10:56:59 +00:00
match_on_vec_items.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
match_ref_pats.rs Merge commit 'd5e2a7aca5' into clippyup 2023-03-24 14:26:19 +01:00
match_same_arms.rs Add ErrorGuaranteed to ast::LitKind::Err, token::LitKind::Err. 2024-02-15 14:46:08 +11:00
match_single_binding.rs hir: Remove hir::Map::{opt_parent_id,parent_id,get_parent,find_parent} 2024-02-10 12:24:46 +03:00
match_str_case_mismatch.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
match_wild_enum.rs Merge commit 'd9c24d1b1e' into clippyup 2023-07-17 10:22:32 +02:00
match_wild_err_arm.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
mod.rs Merge commit 'ac4c2094a6' into clippy-subtree-sync 2023-12-28 19:33:07 +01:00
needless_match.rs Update clippy for hir::Guard removal 2024-01-05 10:56:59 +00:00
overlapping_arms.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
redundant_guards.rs hir: Remove hir::Map::{opt_parent_id,parent_id,get_parent,find_parent} 2024-02-10 12:24:46 +03:00
redundant_pattern_match.rs Update clippy for hir::Guard removal 2024-01-05 10:56:59 +00:00
rest_pat_in_fully_bound_struct.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
significant_drop_in_scrutinee.rs Prefer DiagnosticBuilder over Diagnostic in diagnostic modifiers. 2024-02-19 20:23:20 +11:00
single_match.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
try_err.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
wild_in_or_pats.rs Merge commit '57b3c4b90f' into clippyup 2022-02-10 18:40:06 +01:00