rust/tests
Alex Macleod d443f38f73
Reinstate single_match/single_match_else lints with comments (#14420)
Commit efe3fe9b8c removed the ability for
`single_match` and `single_match_else` to trigger if comments were
present outside of the arms, as those comments would be lost while
rewriting the `match` expression.

This reinstates the lint, but prevents the suggestion from being applied
automatically in the presence of comments by using the `MaybeIncorrect`
applicability. Also, a note is added to the lint message to warn the
user about the need to preserve the comments if acting upon the
suggestion.

changelog: [`single_match`, `single_match_else`]: reinstate lint when
comments are inside the `match` but do not autofix the code

Fix #14418
2025-03-18 12:45:19 +00:00
..
test_utils
ui Reinstate single_match/single_match_else lints with comments (#14420) 2025-03-18 12:45:19 +00:00
ui-cargo Merge remote-tracking branch 'upstream/master' into rustup 2025-02-27 21:51:42 +01:00
ui-internal Make annotations mandatory for internal ui tests 2025-03-12 11:32:40 +01:00
ui-toml fix: unnecessary_safety_comment FP on desugared assign 2025-03-10 12:36:37 +08:00
workspace_test Merge commit 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
check-fmt.rs Merge commit 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
clippy.toml
compile-test.rs Make annotations mandatory for internal ui tests 2025-03-12 11:32:40 +01:00
config-metadata.rs Merge commit 'a109190d70' into clippy-subtree-update 2024-10-18 13:44:06 +02:00
dogfood.rs Merge commit '7901289135' into clippy-subtree-update 2024-09-24 11:58:04 +02:00
headers.rs
integration.rs Merge commit 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
lint_message_convention.rs Update lint_message_convention test to allow clippy "help" message 2025-03-12 11:41:26 +01:00
missing-test-files.rs Merge commit '51d49c1ae2' into clippy-subtree-update 2025-01-28 19:33:54 +01:00
versioncheck.rs rustc_tools_util: Change release channel default to stable 2025-02-13 11:10:45 +01:00
workspace.rs