File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
src/tools/clippy/tests/ui Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 33#![feature(range_is_empty)]
44#![warn(clippy::len_zero)]
55#![allow(unused)]
6+ #![allow(stable_features)] // TODO: https://github.com/rust-lang/rust-clippy/issues/5956
67
78mod issue_3807 {
89 // With the feature enabled, `is_empty` should be suggested
Original file line number Diff line number Diff line change 33#![ feature( range_is_empty) ]
44#![ warn( clippy:: len_zero) ]
55#![ allow( unused) ]
6+ #![ allow( stable_features) ] // TODO: https://github.com/rust-lang/rust-clippy/issues/5956
67
78mod issue_3807 {
89 // With the feature enabled, `is_empty` should be suggested
Original file line number Diff line number Diff line change 11error: length comparison to zero
2- --> $DIR/len_zero_ranges.rs:10 :17
2+ --> $DIR/len_zero_ranges.rs:11 :17
33 |
44LL | let _ = (0..42).len() == 0;
55 | ^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0..42).is_empty()`
You can’t perform that action at this time.
0 commit comments