about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-08-21 08:15:36 +0000
committerbors <bors@rust-lang.org>2019-08-21 08:15:36 +0000
commit57c67a29d2ec11a3a299a5c9e7797fa06482c30b (patch)
tree285ecee51e90a14b988bb5527270bf0f5282c5ea /src/test/incremental/thinlto
parent45d24fd6bf45a50c1833a3ebc535c611fa0f785b (diff)
parent436d429d27ba3ce1a9a5ca3ae4074ac75ab11c2c (diff)
downloadrust-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