diff options
| author | bors <bors@rust-lang.org> | 2019-04-14 15:56:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-04-14 15:56:58 +0000 |
| commit | 6505794bc64d1dc2beacbcec3ba351c834cbf47f (patch) | |
| tree | bd00e613b4a36a4fd08b1cf86f2863406ef9d2c5 /src/test/incremental/thinlto | |
| parent | 422ae77caebc3a507440bae116683cff923b5ad4 (diff) | |
| parent | 289a9af8014806aae79547645e4055f867b0cd09 (diff) | |
| download | rust-6505794bc64d1dc2beacbcec3ba351c834cbf47f.tar.gz rust-6505794bc64d1dc2beacbcec3ba351c834cbf47f.zip | |
Auto merge of #3960 - phansch:fix_except, r=flip1995
Remove `except` in suspicious_else_formatting 96c34e85 contains the fix: This was causing two different ICEs in #3741. The first was fixed in #3925. The second one is fixed with this commit: We just don't `expect` anymore. If the snippet doesn't contain an `else`, we stop emitting the lint because it's not a suspiciously formatted else anyway. Unfortunately I wasn't able to provide a minimal test case, but I think it's fine since it's just ignoring the `None` case now. And ad27e3ff cleans up the lint code to use `if_chain`. Fixes #3741 once more.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
