]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/len_zero.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / len_zero.stderr
CommitLineData
f20569fa
XL
1error: length comparison to zero
2 --> $DIR/len_zero.rs:61:8
3 |
4LL | if x.len() == 0 {
5 | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `x.is_empty()`
6 |
7 = note: `-D clippy::len-zero` implied by `-D warnings`
8
9error: length comparison to zero
10 --> $DIR/len_zero.rs:65:8
11 |
12LL | if "".len() == 0 {}
13 | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `"".is_empty()`
14
15error: length comparison to zero
16 --> $DIR/len_zero.rs:80:8
17 |
18LL | if has_is_empty.len() == 0 {
19 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
20
21error: length comparison to zero
22 --> $DIR/len_zero.rs:83:8
23 |
24LL | if has_is_empty.len() != 0 {
25 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
26
27error: length comparison to zero
28 --> $DIR/len_zero.rs:86:8
29 |
30LL | if has_is_empty.len() > 0 {
31 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
32
33error: length comparison to one
34 --> $DIR/len_zero.rs:89:8
35 |
36LL | if has_is_empty.len() < 1 {
37 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
38
39error: length comparison to one
40 --> $DIR/len_zero.rs:92:8
41 |
42LL | if has_is_empty.len() >= 1 {
43 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
44
45error: length comparison to zero
46 --> $DIR/len_zero.rs:103:8
47 |
48LL | if 0 == has_is_empty.len() {
49 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
50
51error: length comparison to zero
52 --> $DIR/len_zero.rs:106:8
53 |
54LL | if 0 != has_is_empty.len() {
55 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
56
57error: length comparison to zero
58 --> $DIR/len_zero.rs:109:8
59 |
60LL | if 0 < has_is_empty.len() {
61 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
62
63error: length comparison to one
64 --> $DIR/len_zero.rs:112:8
65 |
66LL | if 1 <= has_is_empty.len() {
67 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
68
69error: length comparison to one
70 --> $DIR/len_zero.rs:115:8
71 |
72LL | if 1 > has_is_empty.len() {
73 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
74
75error: length comparison to zero
76 --> $DIR/len_zero.rs:129:8
77 |
78LL | if with_is_empty.len() == 0 {
79 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `with_is_empty.is_empty()`
80
81error: length comparison to zero
82 --> $DIR/len_zero.rs:142:8
83 |
84LL | if b.len() != 0 {}
85 | ^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!b.is_empty()`
86
87error: aborting due to 14 previous errors
88