diff options
| author | bors <bors@rust-lang.org> | 2024-03-04 14:43:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-04 14:43:38 +0000 |
| commit | c0939b18b879e598b55321c604681da489f82c22 (patch) | |
| tree | ff9575fb4d724b6dfba0c75ca9b6a5a5e2b1408a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | e970fa52e799cdeeee3fe022d390ca321f1767ef (diff) | |
| parent | 3b9939e83b4cba6d00868e767358fdc1be05264a (diff) | |
| download | rust-c0939b18b879e598b55321c604681da489f82c22.tar.gz rust-c0939b18b879e598b55321c604681da489f82c22.zip | |
Auto merge of #12409 - cookie-s:fix-identityop-duplicate-errors, r=Alexendoo
[`identity_op`]: Fix duplicate diagnostics Relates to #12379 In the `identity_op` lint, the following diagnostic was emitted two times ``` --> tests/ui/identity_op.rs:156:5 | LL | 1 * 1; | ^^^^^ help: consider reducing it to: `1` | ``` because both of the left operand and the right operand are the identity element of the multiplication. This PR fixes the issue so that if a diagnostic is created for an operand, the check of the other operand will be skipped. It's fine because the result is always the same in the affected operators. --- changelog: [`identity_op`]: Fix duplicate diagnostics
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
