diff options
| author | bors <bors@rust-lang.org> | 2019-08-21 08:15:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-21 08:15:36 +0000 |
| commit | 57c67a29d2ec11a3a299a5c9e7797fa06482c30b (patch) | |
| tree | 285ecee51e90a14b988bb5527270bf0f5282c5ea /src/test/incremental/thinlto | |
| parent | 45d24fd6bf45a50c1833a3ebc535c611fa0f785b (diff) | |
| parent | 436d429d27ba3ce1a9a5ca3ae4074ac75ab11c2c (diff) | |
| download | rust-57c67a29d2ec11a3a299a5c9e7797fa06482c30b.tar.gz rust-57c67a29d2ec11a3a299a5c9e7797fa06482c30b.zip | |
Auto merge of #4352 - phansch:fix_redundant_pattern_matching, r=flip1995
Fix some suggestions for redundant_pattern_matching
.. and change the Applicability to `MaybeIncorrect`.
Fixes the problem displayed in https://github.com/rust-lang/rust-clippy/issues/4344#issuecomment-519206388.
We now append `{}` to the suggestion so that the conditional has the
correct syntax again.
(If we were to _remove_ the `if` instead, it would trigger the
`unused_must_use` warning for `#[must_use]` types.)
changelog: Fix some suggestions for `redundant_pattern_matching`
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
