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-03-04 00:56:43 +01:00
2020-04-19 10:56:15 -04:00
2020-04-19 10:56:15 -04:00
2020-04-19 21:00:25 +02:00
2020-04-09 08:08:36 +02:00
2020-03-03 18:06:59 -08:00
2020-02-23 22:36:15 -08:00
2020-02-23 22:36:15 -08:00
2020-04-20 15:47:08 -04:00
2020-04-23 16:30:06 -07:00
2020-04-26 18:00:51 +03:00
2020-05-22 19:21:30 +02:00
2020-05-25 21:41:28 +02:00
2020-05-25 21:41:19 +02:00
2020-04-17 09:27:54 +02:00
2020-04-17 09:27:54 +02:00
2020-03-03 10:48:08 +01:00
2020-03-20 22:52:53 +00:00
2020-04-08 08:37:20 -07:00
2020-03-31 16:13:51 +05:30
2020-03-04 00:56:43 +01:00
2020-03-04 00:56:43 +01:00
2020-04-02 18:31:31 -07:00
2020-04-01 20:12:36 +02:00
2020-04-01 20:12:36 +02:00
2020-03-29 22:22:36 +02:00
2020-03-11 06:35:07 +09:00
2020-03-10 18:00:37 -04:00
2020-03-10 18:00:37 -04:00