873c9fc8f2
len_zero: skip ranges if feature `range_is_empty` is not enabled If the feature is not enabled, calling `is_empty()` on a range is ambiguous. Moreover, the two possible resolutions are unstable methods, one inherent to the range and the other being part of the `ExactSizeIterator` trait. Since `len_zero` only checks for existing `is_empty()` inherent methods, we only take into account the `range_is_empty` feature. Related: https://github.com/rust-lang/rust/issues/48111#issuecomment-445132965 changelog: len_zero: avoid linting ranges without #![feature(range_is_empty)] Fixes: #3807 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |