rust/clippy_utils/src
llogiq c607408df5
Fix single_match lint being emitted when it should not (#13765)
We realized when running `clippy --fix` on rustdoc (PR comment
[here](https://github.com/rust-lang/rust/pull/133537/files#r1861377721))
that some comments were removed, which is problematic. This PR checks
that comments outside of `match` arms are taken into account before
emitting the lint.

changelog: Fix `single_match` lint being emitted when it should not
2024-12-13 16:52:31 +00:00
..
ast_utils refactor(utils): move top-level files to mod.rs when applicable 2024-11-29 18:22:13 -05:00
mir Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
ty refactor(utils): move top-level files to mod.rs when applicable 2024-11-29 18:22:13 -05:00
attrs.rs Support user format-like macros 2024-11-15 15:26:48 -05:00
check_proc_macro.rs Merge commit '786fbd6d68' into clippy-subtree-update 2024-11-14 19:35:26 +01:00
comparisons.rs Merge commit 'd9c24d1b1e' into clippyup 2023-07-17 10:22:32 +02:00
consts.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-11-28 18:56:49 +01:00
diagnostics.rs Clippy: cfg out validate_diag on release builds 2024-11-08 10:49:54 +01:00
eager_or_lazy.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
higher.rs Merge commit 'f712eb5cdc' into clippy-subtree-update 2024-11-07 22:37:01 +01:00
hir_utils.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-11-28 18:56:49 +01:00
lib.rs Fix single_match lint being emitted when it should not 2024-12-13 16:49:09 +01:00
macros.rs Handle Option::map_or(true, …) in unnecessary_map_or lint (#13653) 2024-11-18 17:33:42 +00:00
msrvs.rs update borrow_as_ptr to suggest &raw when the MSRV allows it 2024-12-05 09:48:55 +01:00
numeric_literal.rs Merge commit '786fbd6d68' into clippy-subtree-update 2024-11-14 19:35:26 +01:00
paths.rs Move MSRV implementation to clippy_utils 2024-11-15 19:26:39 +01:00
ptr.rs Merge commit '7901289135' into clippy-subtree-update 2024-09-24 11:58:04 +02:00
qualify_min_const_fn.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-11-28 18:56:49 +01:00
source.rs Avoid another &Lrc<..> in a return value. 2024-10-07 13:59:50 +11:00
str_utils.rs Merge commit '7901289135' into clippy-subtree-update 2024-09-24 11:58:04 +02:00
sugg.rs Merge commit '786fbd6d68' into clippy-subtree-update 2024-11-14 19:35:26 +01:00
sym_helper.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
usage.rs Simplify instances of Option::map_or(true, …) in Clippy sources 2024-11-16 00:12:41 +01:00
visitors.rs Merge commit '786fbd6d68' into clippy-subtree-update 2024-11-14 19:35:26 +01:00