11error: this expression always evaluates to true
2- --> tests/ui/const_is_empty.rs:6 :8
2+ --> tests/ui/const_is_empty.rs:5 :8
33 |
44LL | if "".is_empty() {
55 | ^^^^^^^^^^^^^
@@ -8,151 +8,151 @@ LL | if "".is_empty() {
88 = help: to override `-D warnings` add `#[allow(clippy::const_is_empty)]`
99
1010error: this expression always evaluates to false
11- --> tests/ui/const_is_empty.rs:9 :8
11+ --> tests/ui/const_is_empty.rs:8 :8
1212 |
1313LL | if "foobar".is_empty() {
1414 | ^^^^^^^^^^^^^^^^^^^
1515
1616error: this expression always evaluates to true
17- --> tests/ui/const_is_empty.rs:15 :8
17+ --> tests/ui/const_is_empty.rs:14 :8
1818 |
1919LL | if b"".is_empty() {
2020 | ^^^^^^^^^^^^^^
2121
2222error: this expression always evaluates to false
23- --> tests/ui/const_is_empty.rs:18 :8
23+ --> tests/ui/const_is_empty.rs:17 :8
2424 |
2525LL | if b"foobar".is_empty() {
2626 | ^^^^^^^^^^^^^^^^^^^^
2727
2828error: this expression always evaluates to true
29- --> tests/ui/const_is_empty.rs:35 :8
29+ --> tests/ui/const_is_empty.rs:34 :8
3030 |
3131LL | if empty2.is_empty() {
3232 | ^^^^^^^^^^^^^^^^^
3333
3434error: this expression always evaluates to false
35- --> tests/ui/const_is_empty.rs:38 :8
35+ --> tests/ui/const_is_empty.rs:37 :8
3636 |
3737LL | if non_empty2.is_empty() {
3838 | ^^^^^^^^^^^^^^^^^^^^^
3939
4040error: this expression always evaluates to true
41- --> tests/ui/const_is_empty.rs:60 :13
41+ --> tests/ui/const_is_empty.rs:59 :13
4242 |
4343LL | let _ = EMPTY_STR.is_empty();
4444 | ^^^^^^^^^^^^^^^^^^^^
4545
4646error: this expression always evaluates to false
47- --> tests/ui/const_is_empty.rs:62 :13
47+ --> tests/ui/const_is_empty.rs:61 :13
4848 |
4949LL | let _ = NON_EMPTY_STR.is_empty();
5050 | ^^^^^^^^^^^^^^^^^^^^^^^^
5151
5252error: this expression always evaluates to true
53- --> tests/ui/const_is_empty.rs:64 :13
53+ --> tests/ui/const_is_empty.rs:63 :13
5454 |
5555LL | let _ = EMPTY_BSTR.is_empty();
5656 | ^^^^^^^^^^^^^^^^^^^^^
5757
5858error: this expression always evaluates to false
59- --> tests/ui/const_is_empty.rs:66 :13
59+ --> tests/ui/const_is_empty.rs:65 :13
6060 |
6161LL | let _ = NON_EMPTY_BSTR.is_empty();
6262 | ^^^^^^^^^^^^^^^^^^^^^^^^^
6363
6464error: this expression always evaluates to true
65- --> tests/ui/const_is_empty.rs:68 :13
65+ --> tests/ui/const_is_empty.rs:67 :13
6666 |
6767LL | let _ = EMPTY_ARRAY.is_empty();
6868 | ^^^^^^^^^^^^^^^^^^^^^^
6969
7070error: this expression always evaluates to true
71- --> tests/ui/const_is_empty.rs:70 :13
71+ --> tests/ui/const_is_empty.rs:69 :13
7272 |
7373LL | let _ = EMPTY_ARRAY_REPEAT.is_empty();
7474 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7575
7676error: this expression always evaluates to true
77- --> tests/ui/const_is_empty.rs:72 :13
77+ --> tests/ui/const_is_empty.rs:71 :13
7878 |
7979LL | let _ = EMPTY_U8_SLICE.is_empty();
8080 | ^^^^^^^^^^^^^^^^^^^^^^^^^
8181
8282error: this expression always evaluates to false
83- --> tests/ui/const_is_empty.rs:74 :13
83+ --> tests/ui/const_is_empty.rs:73 :13
8484 |
8585LL | let _ = NON_EMPTY_U8_SLICE.is_empty();
8686 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8787
8888error: this expression always evaluates to false
89- --> tests/ui/const_is_empty.rs:76 :13
89+ --> tests/ui/const_is_empty.rs:75 :13
9090 |
9191LL | let _ = NON_EMPTY_ARRAY.is_empty();
9292 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
9393
9494error: this expression always evaluates to false
95- --> tests/ui/const_is_empty.rs:78 :13
95+ --> tests/ui/const_is_empty.rs:77 :13
9696 |
9797LL | let _ = NON_EMPTY_ARRAY_REPEAT.is_empty();
9898 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9999
100100error: this expression always evaluates to true
101- --> tests/ui/const_is_empty.rs:80 :13
101+ --> tests/ui/const_is_empty.rs:79 :13
102102 |
103103LL | let _ = EMPTY_REF_ARRAY.is_empty();
104104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
105105
106106error: this expression always evaluates to false
107- --> tests/ui/const_is_empty.rs:82 :13
107+ --> tests/ui/const_is_empty.rs:81 :13
108108 |
109109LL | let _ = NON_EMPTY_REF_ARRAY.is_empty();
110110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111111
112112error: this expression always evaluates to true
113- --> tests/ui/const_is_empty.rs:84 :13
113+ --> tests/ui/const_is_empty.rs:83 :13
114114 |
115115LL | let _ = EMPTY_SLICE.is_empty();
116116 | ^^^^^^^^^^^^^^^^^^^^^^
117117
118118error: this expression always evaluates to false
119- --> tests/ui/const_is_empty.rs:86 :13
119+ --> tests/ui/const_is_empty.rs:85 :13
120120 |
121121LL | let _ = NON_EMPTY_SLICE.is_empty();
122122 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
123123
124124error: this expression always evaluates to false
125- --> tests/ui/const_is_empty.rs:88 :13
125+ --> tests/ui/const_is_empty.rs:87 :13
126126 |
127127LL | let _ = NON_EMPTY_SLICE_REPEAT.is_empty();
128128 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129129
130130error: this expression always evaluates to false
131- --> tests/ui/const_is_empty.rs:94 :13
131+ --> tests/ui/const_is_empty.rs:93 :13
132132 |
133133LL | let _ = value.is_empty();
134134 | ^^^^^^^^^^^^^^^^
135135
136136error: this expression always evaluates to false
137- --> tests/ui/const_is_empty.rs:97 :13
137+ --> tests/ui/const_is_empty.rs:96 :13
138138 |
139139LL | let _ = x.is_empty();
140140 | ^^^^^^^^^^^^
141141
142142error: this expression always evaluates to true
143- --> tests/ui/const_is_empty.rs:99 :13
143+ --> tests/ui/const_is_empty.rs:98 :13
144144 |
145145LL | let _ = "".is_empty();
146146 | ^^^^^^^^^^^^^
147147
148148error: this expression always evaluates to true
149- --> tests/ui/const_is_empty.rs:101 :13
149+ --> tests/ui/const_is_empty.rs:100 :13
150150 |
151151LL | let _ = b"".is_empty();
152152 | ^^^^^^^^^^^^^^
153153
154154error: this expression always evaluates to true
155- --> tests/ui/const_is_empty.rs:155 :13
155+ --> tests/ui/const_is_empty.rs:154 :13
156156 |
157157LL | let _ = val.is_empty();
158158 | ^^^^^^^^^^^^^^
0 commit comments