diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-03-16 19:12:56 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-03-17 16:14:14 +0100 |
| commit | a1bdc191ba5c3976d7f1d09d894a8c41760166fb (patch) | |
| tree | 311c1180dd695294c981ebed11c4999a756dfab2 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 48005578576c7820590f680b92f5f6213b9165f5 (diff) | |
| download | rust-a1bdc191ba5c3976d7f1d09d894a8c41760166fb.tar.gz rust-a1bdc191ba5c3976d7f1d09d894a8c41760166fb.zip | |
Reinstate `single_match`/`single_match_else` lints with comments
Commit efe3fe9b8c5f16bbf39af7415bbde9441bc54dbb 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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
