1 error: item `PubOne` has a public `len` method but no corresponding `is_empty` method
2 --> $DIR/len_zero.rs:8:1
5 9 | | pub fn len(self: &Self) -> isize {
11 = note: `-D clippy::len-without-is-empty` implied by `-D warnings`
13 error: trait `PubTraitsToo` has a `len` method but no (possibly inherited) `is_empty` method
14 --> $DIR/len_zero.rs:57:1
16 57 | / pub trait PubTraitsToo {
17 58 | | fn len(self: &Self) -> isize;
21 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
22 --> $DIR/len_zero.rs:91:1
24 91 | / impl HasIsEmpty {
25 92 | | pub fn len(self: &Self) -> isize {
33 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
34 --> $DIR/len_zero.rs:120:1
36 120 | / impl HasWrongIsEmpty {
37 121 | | pub fn len(self: &Self) -> isize {
45 error: length comparison to zero
46 --> $DIR/len_zero.rs:141:8
48 141 | if x.len() == 0 {
49 | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `x.is_empty()`
51 = note: `-D clippy::len-zero` implied by `-D warnings`
53 error: length comparison to zero
54 --> $DIR/len_zero.rs:145:8
56 145 | if "".len() == 0 {}
57 | ^^^^^^^^^^^^^ help: using `is_empty` is more concise: `"".is_empty()`
59 error: length comparison to zero
60 --> $DIR/len_zero.rs:160:8
62 160 | if has_is_empty.len() == 0 {
63 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `has_is_empty.is_empty()`
65 error: length comparison to zero
66 --> $DIR/len_zero.rs:163:8
68 163 | if has_is_empty.len() != 0 {
69 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
71 error: length comparison to zero
72 --> $DIR/len_zero.rs:166:8
74 166 | if has_is_empty.len() > 0 {
75 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
77 error: length comparison to one
78 --> $DIR/len_zero.rs:169:8
80 169 | if has_is_empty.len() < 1 {
81 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `has_is_empty.is_empty()`
83 error: length comparison to one
84 --> $DIR/len_zero.rs:172:8
86 172 | if has_is_empty.len() >= 1 {
87 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
89 error: length comparison to zero
90 --> $DIR/len_zero.rs:183:8
92 183 | if 0 == has_is_empty.len() {
93 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `has_is_empty.is_empty()`
95 error: length comparison to zero
96 --> $DIR/len_zero.rs:186:8
98 186 | if 0 != has_is_empty.len() {
99 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
101 error: length comparison to zero
102 --> $DIR/len_zero.rs:189:8
104 189 | if 0 < has_is_empty.len() {
105 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
107 error: length comparison to one
108 --> $DIR/len_zero.rs:192:8
110 192 | if 1 <= has_is_empty.len() {
111 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
113 error: length comparison to one
114 --> $DIR/len_zero.rs:195:8
116 195 | if 1 > has_is_empty.len() {
117 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `has_is_empty.is_empty()`
119 error: length comparison to zero
120 --> $DIR/len_zero.rs:209:8
122 209 | if with_is_empty.len() == 0 {
123 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `with_is_empty.is_empty()`
125 error: length comparison to zero
126 --> $DIR/len_zero.rs:222:8
128 222 | if b.len() != 0 {}
129 | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `!b.is_empty()`
131 error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method
132 --> $DIR/len_zero.rs:228:1
134 228 | / pub trait DependsOnFoo: Foo {
135 229 | | fn len(&mut self) -> usize;
139 error: aborting due to 19 previous errors