1
1
error: this expression always evaluates to true
2
- --> tests/ui/const_is_empty.rs:6 :8
2
+ --> tests/ui/const_is_empty.rs:5 :8
3
3
|
4
4
LL | if "".is_empty() {
5
5
| ^^^^^^^^^^^^^
@@ -8,151 +8,151 @@ LL | if "".is_empty() {
8
8
= help: to override `-D warnings` add `#[allow(clippy::const_is_empty)]`
9
9
10
10
error: this expression always evaluates to false
11
- --> tests/ui/const_is_empty.rs:9 :8
11
+ --> tests/ui/const_is_empty.rs:8 :8
12
12
|
13
13
LL | if "foobar".is_empty() {
14
14
| ^^^^^^^^^^^^^^^^^^^
15
15
16
16
error: this expression always evaluates to true
17
- --> tests/ui/const_is_empty.rs:15 :8
17
+ --> tests/ui/const_is_empty.rs:14 :8
18
18
|
19
19
LL | if b"".is_empty() {
20
20
| ^^^^^^^^^^^^^^
21
21
22
22
error: this expression always evaluates to false
23
- --> tests/ui/const_is_empty.rs:18 :8
23
+ --> tests/ui/const_is_empty.rs:17 :8
24
24
|
25
25
LL | if b"foobar".is_empty() {
26
26
| ^^^^^^^^^^^^^^^^^^^^
27
27
28
28
error: this expression always evaluates to true
29
- --> tests/ui/const_is_empty.rs:35 :8
29
+ --> tests/ui/const_is_empty.rs:34 :8
30
30
|
31
31
LL | if empty2.is_empty() {
32
32
| ^^^^^^^^^^^^^^^^^
33
33
34
34
error: this expression always evaluates to false
35
- --> tests/ui/const_is_empty.rs:38 :8
35
+ --> tests/ui/const_is_empty.rs:37 :8
36
36
|
37
37
LL | if non_empty2.is_empty() {
38
38
| ^^^^^^^^^^^^^^^^^^^^^
39
39
40
40
error: this expression always evaluates to true
41
- --> tests/ui/const_is_empty.rs:60 :13
41
+ --> tests/ui/const_is_empty.rs:59 :13
42
42
|
43
43
LL | let _ = EMPTY_STR.is_empty();
44
44
| ^^^^^^^^^^^^^^^^^^^^
45
45
46
46
error: this expression always evaluates to false
47
- --> tests/ui/const_is_empty.rs:62 :13
47
+ --> tests/ui/const_is_empty.rs:61 :13
48
48
|
49
49
LL | let _ = NON_EMPTY_STR.is_empty();
50
50
| ^^^^^^^^^^^^^^^^^^^^^^^^
51
51
52
52
error: this expression always evaluates to true
53
- --> tests/ui/const_is_empty.rs:64 :13
53
+ --> tests/ui/const_is_empty.rs:63 :13
54
54
|
55
55
LL | let _ = EMPTY_BSTR.is_empty();
56
56
| ^^^^^^^^^^^^^^^^^^^^^
57
57
58
58
error: this expression always evaluates to false
59
- --> tests/ui/const_is_empty.rs:66 :13
59
+ --> tests/ui/const_is_empty.rs:65 :13
60
60
|
61
61
LL | let _ = NON_EMPTY_BSTR.is_empty();
62
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^
63
63
64
64
error: this expression always evaluates to true
65
- --> tests/ui/const_is_empty.rs:68 :13
65
+ --> tests/ui/const_is_empty.rs:67 :13
66
66
|
67
67
LL | let _ = EMPTY_ARRAY.is_empty();
68
68
| ^^^^^^^^^^^^^^^^^^^^^^
69
69
70
70
error: this expression always evaluates to true
71
- --> tests/ui/const_is_empty.rs:70 :13
71
+ --> tests/ui/const_is_empty.rs:69 :13
72
72
|
73
73
LL | let _ = EMPTY_ARRAY_REPEAT.is_empty();
74
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75
75
76
76
error: this expression always evaluates to true
77
- --> tests/ui/const_is_empty.rs:72 :13
77
+ --> tests/ui/const_is_empty.rs:71 :13
78
78
|
79
79
LL | let _ = EMPTY_U8_SLICE.is_empty();
80
80
| ^^^^^^^^^^^^^^^^^^^^^^^^^
81
81
82
82
error: this expression always evaluates to false
83
- --> tests/ui/const_is_empty.rs:74 :13
83
+ --> tests/ui/const_is_empty.rs:73 :13
84
84
|
85
85
LL | let _ = NON_EMPTY_U8_SLICE.is_empty();
86
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87
87
88
88
error: this expression always evaluates to false
89
- --> tests/ui/const_is_empty.rs:76 :13
89
+ --> tests/ui/const_is_empty.rs:75 :13
90
90
|
91
91
LL | let _ = NON_EMPTY_ARRAY.is_empty();
92
92
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
93
93
94
94
error: this expression always evaluates to false
95
- --> tests/ui/const_is_empty.rs:78 :13
95
+ --> tests/ui/const_is_empty.rs:77 :13
96
96
|
97
97
LL | let _ = NON_EMPTY_ARRAY_REPEAT.is_empty();
98
98
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
99
99
100
100
error: this expression always evaluates to true
101
- --> tests/ui/const_is_empty.rs:80 :13
101
+ --> tests/ui/const_is_empty.rs:79 :13
102
102
|
103
103
LL | let _ = EMPTY_REF_ARRAY.is_empty();
104
104
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
105
105
106
106
error: this expression always evaluates to false
107
- --> tests/ui/const_is_empty.rs:82 :13
107
+ --> tests/ui/const_is_empty.rs:81 :13
108
108
|
109
109
LL | let _ = NON_EMPTY_REF_ARRAY.is_empty();
110
110
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111
111
112
112
error: this expression always evaluates to true
113
- --> tests/ui/const_is_empty.rs:84 :13
113
+ --> tests/ui/const_is_empty.rs:83 :13
114
114
|
115
115
LL | let _ = EMPTY_SLICE.is_empty();
116
116
| ^^^^^^^^^^^^^^^^^^^^^^
117
117
118
118
error: this expression always evaluates to false
119
- --> tests/ui/const_is_empty.rs:86 :13
119
+ --> tests/ui/const_is_empty.rs:85 :13
120
120
|
121
121
LL | let _ = NON_EMPTY_SLICE.is_empty();
122
122
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
123
123
124
124
error: this expression always evaluates to false
125
- --> tests/ui/const_is_empty.rs:88 :13
125
+ --> tests/ui/const_is_empty.rs:87 :13
126
126
|
127
127
LL | let _ = NON_EMPTY_SLICE_REPEAT.is_empty();
128
128
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129
129
130
130
error: this expression always evaluates to false
131
- --> tests/ui/const_is_empty.rs:94 :13
131
+ --> tests/ui/const_is_empty.rs:93 :13
132
132
|
133
133
LL | let _ = value.is_empty();
134
134
| ^^^^^^^^^^^^^^^^
135
135
136
136
error: this expression always evaluates to false
137
- --> tests/ui/const_is_empty.rs:97 :13
137
+ --> tests/ui/const_is_empty.rs:96 :13
138
138
|
139
139
LL | let _ = x.is_empty();
140
140
| ^^^^^^^^^^^^
141
141
142
142
error: this expression always evaluates to true
143
- --> tests/ui/const_is_empty.rs:99 :13
143
+ --> tests/ui/const_is_empty.rs:98 :13
144
144
|
145
145
LL | let _ = "".is_empty();
146
146
| ^^^^^^^^^^^^^
147
147
148
148
error: this expression always evaluates to true
149
- --> tests/ui/const_is_empty.rs:101 :13
149
+ --> tests/ui/const_is_empty.rs:100 :13
150
150
|
151
151
LL | let _ = b"".is_empty();
152
152
| ^^^^^^^^^^^^^^
153
153
154
154
error: this expression always evaluates to true
155
- --> tests/ui/const_is_empty.rs:155 :13
155
+ --> tests/ui/const_is_empty.rs:154 :13
156
156
|
157
157
LL | let _ = val.is_empty();
158
158
| ^^^^^^^^^^^^^^
0 commit comments