mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
69ade776fa
`clippy::len_without_is_empty` can be allowed at the type declaration site, and this will prevent the lint from triggering even though the lint is shown on the `len()` method definition. This allows the lint to be expected even though it is allowed at the type declaration site. changelog: [`len_without_is_empty`]: the lint can now be `#[expect]`ed on the `len()` method even when it is `#[allow]`ed on the definining type. Fixes rust-lang/rust-clippy#14597