diff options
| author | bors <bors@rust-lang.org> | 2023-01-05 23:36:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-05 23:36:49 +0000 |
| commit | 4f4c96155ae7578dcbdf09dabd7f382a371cc9d5 (patch) | |
| tree | 77b5336ed2d2925c49252d079fcd60d1d49d5821 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 61ff54e5c22736bad5fc4f41d3cc36208475510c (diff) | |
| parent | 01a2a9df4300749f5c96209e707d02aae44f39e3 (diff) | |
| download | rust-4f4c96155ae7578dcbdf09dabd7f382a371cc9d5.tar.gz rust-4f4c96155ae7578dcbdf09dabd7f382a371cc9d5.zip | |
Auto merge of #10142 - EricWu2003:drop_ref-FP, r=llogiq
[`drop_ref`]: don't lint idiomatic in match arm fixes #10122 As established in issue #9482, it is idiomatic to use a single `drop()` expression in a match arm to achieve a side-effect of a function while discarding its output. This should also apply to cases where the function returns a reference. The change to the lint's code was less than 1 line, because all the heavy lifting was done in PR #9491. --- changelog: FP: [`drop_ref`]: No longer lints idiomatic expression in `match` arms [#10142](https://github.com/rust-lang/rust-clippy/pull/10142) <!-- changelog_checked -->
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
