1 error: item `PubOne` has a public `len` method but no corresponding `is_empty` method
2 --> $DIR/len_zero.rs:9:1
6 10 | | pub fn len(self: &Self) -> isize {
12 note: lint level defined here
13 --> $DIR/len_zero.rs:4:9
15 4 | #![deny(len_without_is_empty, len_zero)]
16 | ^^^^^^^^^^^^^^^^^^^^
18 error: trait `PubTraitsToo` has a `len` method but no `is_empty` method
19 --> $DIR/len_zero.rs:55:1
21 55 | pub trait PubTraitsToo {
23 56 | | fn len(self: &Self) -> isize;
27 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
28 --> $DIR/len_zero.rs:89:1
30 89 | impl HasIsEmpty {
32 90 | | pub fn len(self: &Self) -> isize {
40 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
41 --> $DIR/len_zero.rs:118:1
43 118 | impl HasWrongIsEmpty {
45 119 | | pub fn len(self: &Self) -> isize {
53 error: length comparison to zero
54 --> $DIR/len_zero.rs:130:8
56 130 | if x.len() == 0 {
59 note: lint level defined here
60 --> $DIR/len_zero.rs:4:31
62 4 | #![deny(len_without_is_empty, len_zero)]
64 help: consider using `is_empty`
67 error: length comparison to zero
68 --> $DIR/len_zero.rs:137:8
70 137 | if "".len() == 0 {
73 help: consider using `is_empty`
76 error: length comparison to zero
77 --> $DIR/len_zero.rs:154:8
79 154 | if has_is_empty.len() == 0 {
80 | ^^^^^^^^^^^^^^^^^^^^^^^
82 help: consider using `is_empty`
83 | if has_is_empty.is_empty() {
85 error: length comparison to zero
86 --> $DIR/len_zero.rs:160:8
88 160 | if has_is_empty.len() != 0 {
89 | ^^^^^^^^^^^^^^^^^^^^^^^
91 help: consider using `is_empty`
92 | if !has_is_empty.is_empty() {
94 error: length comparison to zero
95 --> $DIR/len_zero.rs:166:8
97 166 | if has_is_empty.len() > 0 {
98 | ^^^^^^^^^^^^^^^^^^^^^^
100 help: consider using `is_empty`
101 | if !has_is_empty.is_empty() {
103 error: length comparison to zero
104 --> $DIR/len_zero.rs:175:8
106 175 | if with_is_empty.len() == 0 {
107 | ^^^^^^^^^^^^^^^^^^^^^^^^
109 help: consider using `is_empty`
110 | if with_is_empty.is_empty() {
112 error: length comparison to zero
113 --> $DIR/len_zero.rs:190:8
115 190 | if b.len() != 0 {
118 help: consider using `is_empty`
121 error: aborting due to 11 previous errors