]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #7677 - surechen:edit_large_enum_variant, r=camsteffen
authorbors <bors@rust-lang.org>
Thu, 30 Sep 2021 12:45:17 +0000 (12:45 +0000)
committerbors <bors@rust-lang.org>
Thu, 30 Sep 2021 12:45:17 +0000 (12:45 +0000)
fix bug for large_enum_variants

Fix the discussion problem in the issue of https://github.com/rust-lang/rust-clippy/issues/7666#issuecomment-919654291

About the false positive problem of case:
```rust
enum LargeEnum6 {
    A,
    B([u8;255]),
    C([u8;200]),
}
```

changelog: Fix largest_enum_variant wrongly identifying the second largest variant.


Trivial merge