rust/clippy_lints/src/matches
Samuel Tardieu 432a8a7a7c Properly handle expansion in single_match
Having a macro call as the scrutinee is supported. However, the proposed
suggestion must use the macro call itself, not its expansion.

When the scrutinee is a macro call, do not complain about an irrefutable
match, as the user may not be aware of the result of the macro. A
comparaison will be suggested instead, as if we couldn't see the outcome
of the macro.

Similarly, do not accept macro calls as arm patterns.
2025-03-28 22:30:09 +01:00
..
collapsible_match.rs Emit collapsible_match at the right node (#14311) 2025-03-22 14:35:24 +00:00
infallible_destructuring_match.rs Implement mut ref/mut ref mut 2024-03-27 09:53:23 -04:00
manual_filter.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
manual_map.rs Merge commit '7901289135' into clippy-subtree-update 2024-09-24 11:58:04 +02:00
manual_ok_err.rs Rename Sugg::maybe_par() into Sugg::maybe_paren() 2025-03-24 08:44:54 +01:00
manual_unwrap_or.rs Unify manual_unwrap_or and manual_unwrap_or_default code 2025-03-25 18:03:41 +01:00
manual_utils.rs Fix clippy 2025-03-06 17:58:32 -03:00
match_as_ref.rs Merge commit '3e3715c312' into clippy-subtree-update 2025-02-06 15:00:24 +01:00
match_bool.rs Merge commit '51d49c1ae2' into clippy-subtree-update 2025-01-28 19:33:54 +01:00
match_like_matches.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01: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 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
match_same_arms.rs Move methods from Map to TyCtxt, part 4. 2025-03-12 08:55:37 +11:00
match_single_binding.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
match_str_case_mismatch.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
match_wild_enum.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
match_wild_err_arm.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
mod.rs Unify manual_unwrap_or and manual_unwrap_or_default code 2025-03-25 18:03:41 +01:00
needless_match.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
overlapping_arms.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
redundant_guards.rs Merge commit '9f9a822509' into clippy-subtree-update 2025-02-28 23:27:09 +01:00
redundant_pattern_match.rs Rename Sugg::maybe_par() into Sugg::maybe_paren() 2025-03-24 08:44:54 +01:00
rest_pat_in_fully_bound_struct.rs Merge commit 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
significant_drop_in_scrutinee.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
single_match.rs Properly handle expansion in single_match 2025-03-28 22:30:09 +01:00
try_err.rs Merge commit '51d49c1ae2' into clippy-subtree-update 2025-01-28 19:33:54 +01:00
wild_in_or_pats.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00