fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
646 B17 linesraw
1error: length comparison to zero
2  --> $DIR/len_zero_ranges.rs:7:17
3   |
4LL |         let _ = (0..42).len() == 0;
5   |                 ^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0..42).is_empty()`
6   |
7   = note: `-D clippy::len-zero` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::len_zero)]`
9
10error: length comparison to zero
11  --> $DIR/len_zero_ranges.rs:11:17
12   |
13LL |         let _ = (0_u8..=42).len() == 0;
14   |                 ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0_u8..=42).is_empty()`
15
16error: aborting due to 2 previous errors
17