Philipp Krones 873c9fc8f2
Rollup merge of #5656 - ebroto:len_zero_ranges, r=matthiaskrgr
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
2020-05-31 14:57:33 +02:00
..
2020-05-30 17:52:10 +02:00
2020-04-19 20:38:07 +02:00
2020-04-26 13:44:08 +02:00
2020-04-26 13:44:08 +02:00
2020-04-26 13:44:08 +02:00
2020-04-26 13:44:08 +02:00
2020-05-11 21:26:39 +02:00
2020-05-30 17:52:10 +02:00
2020-05-18 14:41:33 +01:00
2020-05-22 13:31:02 -07:00
2020-04-26 13:44:08 +02:00
2020-05-31 14:05:57 +02:00
2020-05-04 15:13:07 +02:00
2020-04-17 08:09:09 +02:00
2020-04-26 13:44:08 +02:00
2020-04-26 13:44:08 +02:00
2020-05-11 21:26:39 +02:00
2020-05-31 14:05:57 +02:00