Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 08b7bd7

Browse files
committedOct 1, 2024·
nits
1 parent 500cff6 commit 08b7bd7

File tree

2 files changed

+52
-52
lines changed

2 files changed

+52
-52
lines changed
 

‎clippy_lints/src/manual_ignore_case_cmp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::manual_ignore_case_cmp::MatchType::{Literal, ToAscii};
22
use clippy_utils::diagnostics::span_lint_and_then;
3-
use clippy_utils::source::snippet;
3+
use clippy_utils::source::snippet_with_applicability;
44
use clippy_utils::ty::{get_type_diagnostic_name, is_type_diagnostic_item, is_type_lang_item};
55
use rustc_ast::LitKind;
66
use rustc_errors::Applicability;
@@ -54,7 +54,7 @@ fn get_ascii_type<'a, 'b>(cx: &LateContext<'a>, kind: rustc_hir::ExprKind<'b>) -
5454
};
5555
let ty_raw = cx.typeck_results().expr_ty(expr);
5656
let ty = ty_raw.peel_refs();
57-
if (ty_raw.is_ref() && needs_ref_to_cmp(cx, ty))
57+
if needs_ref_to_cmp(cx, ty)
5858
|| ty.is_str()
5959
|| ty.is_slice()
6060
|| matches!(get_type_diagnostic_name(cx, ty), Some(sym::OsStr | sym::OsString))
@@ -118,7 +118,7 @@ impl LateLintPass<'_> for ManualIgnoreCaseCmp {
118118
snippet_with_applicability(cx, left_span, "_", &mut app),
119119
snippet_with_applicability(cx, right_span, "_", &mut app)
120120
),
121-
app
121+
app,
122122
);
123123
},
124124
);

‎tests/ui/manual_ignore_case_cmp.stderr

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: manually doing case-insensitive ASCII comparison
1+
error: manual case-insensitive ASCII comparison
22
--> tests/ui/manual_ignore_case_cmp.rs:9:8
33
|
44
LL | if a.to_ascii_lowercase() == b.to_ascii_lowercase() {
@@ -14,7 +14,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
1414
LL | if a.eq_ignore_ascii_case(b) {
1515
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1616

17-
error: manually doing case-insensitive ASCII comparison
17+
error: manual case-insensitive ASCII comparison
1818
--> tests/ui/manual_ignore_case_cmp.rs:12:8
1919
|
2020
LL | if a.to_ascii_uppercase() == b.to_ascii_uppercase() {
@@ -25,7 +25,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
2525
LL | if a.eq_ignore_ascii_case(b) {
2626
| ~~~~~~~~~~~~~~~~~~~~~~~~~
2727

28-
error: manually doing case-insensitive ASCII comparison
28+
error: manual case-insensitive ASCII comparison
2929
--> tests/ui/manual_ignore_case_cmp.rs:15:13
3030
|
3131
LL | let r = a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -36,7 +36,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
3636
LL | let r = a.eq_ignore_ascii_case(b);
3737
| ~~~~~~~~~~~~~~~~~~~~~~~~~
3838

39-
error: manually doing case-insensitive ASCII comparison
39+
error: manual case-insensitive ASCII comparison
4040
--> tests/ui/manual_ignore_case_cmp.rs:16:18
4141
|
4242
LL | let r = r || a.to_ascii_uppercase() == b.to_ascii_uppercase();
@@ -47,7 +47,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
4747
LL | let r = r || a.eq_ignore_ascii_case(b);
4848
| ~~~~~~~~~~~~~~~~~~~~~~~~~
4949

50-
error: manually doing case-insensitive ASCII comparison
50+
error: manual case-insensitive ASCII comparison
5151
--> tests/ui/manual_ignore_case_cmp.rs:17:10
5252
|
5353
LL | r && a.to_ascii_lowercase() == b.to_uppercase().to_ascii_lowercase();
@@ -58,7 +58,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
5858
LL | r && a.eq_ignore_ascii_case(&b.to_uppercase());
5959
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6060

61-
error: manually doing case-insensitive ASCII comparison
61+
error: manual case-insensitive ASCII comparison
6262
--> tests/ui/manual_ignore_case_cmp.rs:19:8
6363
|
6464
LL | if a.to_ascii_lowercase() != b.to_ascii_lowercase() {
@@ -69,7 +69,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
6969
LL | if !a.eq_ignore_ascii_case(b) {
7070
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
7171

72-
error: manually doing case-insensitive ASCII comparison
72+
error: manual case-insensitive ASCII comparison
7373
--> tests/ui/manual_ignore_case_cmp.rs:22:8
7474
|
7575
LL | if a.to_ascii_uppercase() != b.to_ascii_uppercase() {
@@ -80,7 +80,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
8080
LL | if !a.eq_ignore_ascii_case(b) {
8181
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
8282

83-
error: manually doing case-insensitive ASCII comparison
83+
error: manual case-insensitive ASCII comparison
8484
--> tests/ui/manual_ignore_case_cmp.rs:25:13
8585
|
8686
LL | let r = a.to_ascii_lowercase() != b.to_ascii_lowercase();
@@ -91,7 +91,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
9191
LL | let r = !a.eq_ignore_ascii_case(b);
9292
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
9393

94-
error: manually doing case-insensitive ASCII comparison
94+
error: manual case-insensitive ASCII comparison
9595
--> tests/ui/manual_ignore_case_cmp.rs:26:18
9696
|
9797
LL | let r = r || a.to_ascii_uppercase() != b.to_ascii_uppercase();
@@ -102,7 +102,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
102102
LL | let r = r || !a.eq_ignore_ascii_case(b);
103103
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
104104

105-
error: manually doing case-insensitive ASCII comparison
105+
error: manual case-insensitive ASCII comparison
106106
--> tests/ui/manual_ignore_case_cmp.rs:27:10
107107
|
108108
LL | r && a.to_ascii_lowercase() != b.to_uppercase().to_ascii_lowercase();
@@ -113,7 +113,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
113113
LL | r && !a.eq_ignore_ascii_case(&b.to_uppercase());
114114
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
115115

116-
error: manually doing case-insensitive ASCII comparison
116+
error: manual case-insensitive ASCII comparison
117117
--> tests/ui/manual_ignore_case_cmp.rs:38:5
118118
|
119119
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -124,7 +124,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
124124
LL | a.eq_ignore_ascii_case(&b);
125125
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
126126

127-
error: manually doing case-insensitive ASCII comparison
127+
error: manual case-insensitive ASCII comparison
128128
--> tests/ui/manual_ignore_case_cmp.rs:41:5
129129
|
130130
LL | a.to_ascii_lowercase() == 'a';
@@ -135,7 +135,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
135135
LL | a.eq_ignore_ascii_case(&'a');
136136
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
137137

138-
error: manually doing case-insensitive ASCII comparison
138+
error: manual case-insensitive ASCII comparison
139139
--> tests/ui/manual_ignore_case_cmp.rs:42:5
140140
|
141141
LL | 'a' == b.to_ascii_lowercase();
@@ -146,7 +146,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
146146
LL | 'a'.eq_ignore_ascii_case(&b);
147147
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
148148

149-
error: manually doing case-insensitive ASCII comparison
149+
error: manual case-insensitive ASCII comparison
150150
--> tests/ui/manual_ignore_case_cmp.rs:45:5
151151
|
152152
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -157,7 +157,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
157157
LL | a.eq_ignore_ascii_case(&b);
158158
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
159159

160-
error: manually doing case-insensitive ASCII comparison
160+
error: manual case-insensitive ASCII comparison
161161
--> tests/ui/manual_ignore_case_cmp.rs:46:5
162162
|
163163
LL | a.to_ascii_lowercase() == b'a';
@@ -168,7 +168,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
168168
LL | a.eq_ignore_ascii_case(&b'a');
169169
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
170170

171-
error: manually doing case-insensitive ASCII comparison
171+
error: manual case-insensitive ASCII comparison
172172
--> tests/ui/manual_ignore_case_cmp.rs:47:5
173173
|
174174
LL | b'a' == b.to_ascii_lowercase();
@@ -179,7 +179,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
179179
LL | b'a'.eq_ignore_ascii_case(&b);
180180
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181181

182-
error: manually doing case-insensitive ASCII comparison
182+
error: manual case-insensitive ASCII comparison
183183
--> tests/ui/manual_ignore_case_cmp.rs:50:5
184184
|
185185
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -190,7 +190,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
190190
LL | a.eq_ignore_ascii_case(b);
191191
| ~~~~~~~~~~~~~~~~~~~~~~~~~
192192

193-
error: manually doing case-insensitive ASCII comparison
193+
error: manual case-insensitive ASCII comparison
194194
--> tests/ui/manual_ignore_case_cmp.rs:51:5
195195
|
196196
LL | a.to_uppercase().to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -201,7 +201,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
201201
LL | a.to_uppercase().eq_ignore_ascii_case(b);
202202
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
203203

204-
error: manually doing case-insensitive ASCII comparison
204+
error: manual case-insensitive ASCII comparison
205205
--> tests/ui/manual_ignore_case_cmp.rs:52:5
206206
|
207207
LL | a.to_ascii_lowercase() == "a";
@@ -212,7 +212,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
212212
LL | a.eq_ignore_ascii_case("a");
213213
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
214214

215-
error: manually doing case-insensitive ASCII comparison
215+
error: manual case-insensitive ASCII comparison
216216
--> tests/ui/manual_ignore_case_cmp.rs:53:5
217217
|
218218
LL | "a" == b.to_ascii_lowercase();
@@ -223,7 +223,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
223223
LL | "a".eq_ignore_ascii_case(b);
224224
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
225225

226-
error: manually doing case-insensitive ASCII comparison
226+
error: manual case-insensitive ASCII comparison
227227
--> tests/ui/manual_ignore_case_cmp.rs:56:5
228228
|
229229
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -234,7 +234,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
234234
LL | a.eq_ignore_ascii_case(b);
235235
| ~~~~~~~~~~~~~~~~~~~~~~~~~
236236

237-
error: manually doing case-insensitive ASCII comparison
237+
error: manual case-insensitive ASCII comparison
238238
--> tests/ui/manual_ignore_case_cmp.rs:57:5
239239
|
240240
LL | a.to_uppercase().to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -245,7 +245,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
245245
LL | a.to_uppercase().eq_ignore_ascii_case(b);
246246
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247247

248-
error: manually doing case-insensitive ASCII comparison
248+
error: manual case-insensitive ASCII comparison
249249
--> tests/ui/manual_ignore_case_cmp.rs:58:5
250250
|
251251
LL | a.to_ascii_lowercase() == "a";
@@ -256,7 +256,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
256256
LL | a.eq_ignore_ascii_case("a");
257257
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
258258

259-
error: manually doing case-insensitive ASCII comparison
259+
error: manual case-insensitive ASCII comparison
260260
--> tests/ui/manual_ignore_case_cmp.rs:59:5
261261
|
262262
LL | "a" == b.to_ascii_lowercase();
@@ -267,7 +267,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
267267
LL | "a".eq_ignore_ascii_case(b);
268268
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
269269

270-
error: manually doing case-insensitive ASCII comparison
270+
error: manual case-insensitive ASCII comparison
271271
--> tests/ui/manual_ignore_case_cmp.rs:62:5
272272
|
273273
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -278,7 +278,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
278278
LL | a.eq_ignore_ascii_case(&b);
279279
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
280280

281-
error: manually doing case-insensitive ASCII comparison
281+
error: manual case-insensitive ASCII comparison
282282
--> tests/ui/manual_ignore_case_cmp.rs:63:5
283283
|
284284
LL | a.to_ascii_lowercase() == "a";
@@ -289,7 +289,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
289289
LL | a.eq_ignore_ascii_case("a");
290290
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
291291

292-
error: manually doing case-insensitive ASCII comparison
292+
error: manual case-insensitive ASCII comparison
293293
--> tests/ui/manual_ignore_case_cmp.rs:64:5
294294
|
295295
LL | "a" == b.to_ascii_lowercase();
@@ -300,7 +300,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
300300
LL | "a".eq_ignore_ascii_case(&b);
301301
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
302302

303-
error: manually doing case-insensitive ASCII comparison
303+
error: manual case-insensitive ASCII comparison
304304
--> tests/ui/manual_ignore_case_cmp.rs:67:5
305305
|
306306
LL | a.to_ascii_lowercase() == "a";
@@ -311,7 +311,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
311311
LL | a.eq_ignore_ascii_case("a");
312312
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
313313

314-
error: manually doing case-insensitive ASCII comparison
314+
error: manual case-insensitive ASCII comparison
315315
--> tests/ui/manual_ignore_case_cmp.rs:68:5
316316
|
317317
LL | "a" == b.to_ascii_lowercase();
@@ -322,7 +322,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
322322
LL | "a".eq_ignore_ascii_case(&b);
323323
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
324324

325-
error: manually doing case-insensitive ASCII comparison
325+
error: manual case-insensitive ASCII comparison
326326
--> tests/ui/manual_ignore_case_cmp.rs:71:5
327327
|
328328
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -333,7 +333,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
333333
LL | a.eq_ignore_ascii_case(b);
334334
| ~~~~~~~~~~~~~~~~~~~~~~~~~
335335

336-
error: manually doing case-insensitive ASCII comparison
336+
error: manual case-insensitive ASCII comparison
337337
--> tests/ui/manual_ignore_case_cmp.rs:72:5
338338
|
339339
LL | a.to_ascii_lowercase() == "a";
@@ -344,7 +344,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
344344
LL | a.eq_ignore_ascii_case("a");
345345
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
346346

347-
error: manually doing case-insensitive ASCII comparison
347+
error: manual case-insensitive ASCII comparison
348348
--> tests/ui/manual_ignore_case_cmp.rs:73:5
349349
|
350350
LL | "a" == b.to_ascii_lowercase();
@@ -355,7 +355,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
355355
LL | "a".eq_ignore_ascii_case(b);
356356
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
357357

358-
error: manually doing case-insensitive ASCII comparison
358+
error: manual case-insensitive ASCII comparison
359359
--> tests/ui/manual_ignore_case_cmp.rs:75:5
360360
|
361361
LL | b.to_ascii_lowercase() == a.to_ascii_lowercase();
@@ -366,7 +366,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
366366
LL | b.eq_ignore_ascii_case(&a);
367367
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
368368

369-
error: manually doing case-insensitive ASCII comparison
369+
error: manual case-insensitive ASCII comparison
370370
--> tests/ui/manual_ignore_case_cmp.rs:76:5
371371
|
372372
LL | b.to_ascii_lowercase() == "a";
@@ -377,7 +377,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
377377
LL | b.eq_ignore_ascii_case("a");
378378
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
379379

380-
error: manually doing case-insensitive ASCII comparison
380+
error: manual case-insensitive ASCII comparison
381381
--> tests/ui/manual_ignore_case_cmp.rs:77:5
382382
|
383383
LL | "a" == a.to_ascii_lowercase();
@@ -388,7 +388,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
388388
LL | "a".eq_ignore_ascii_case(&a);
389389
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
390390

391-
error: manually doing case-insensitive ASCII comparison
391+
error: manual case-insensitive ASCII comparison
392392
--> tests/ui/manual_ignore_case_cmp.rs:80:5
393393
|
394394
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -399,7 +399,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
399399
LL | a.eq_ignore_ascii_case(b);
400400
| ~~~~~~~~~~~~~~~~~~~~~~~~~
401401

402-
error: manually doing case-insensitive ASCII comparison
402+
error: manual case-insensitive ASCII comparison
403403
--> tests/ui/manual_ignore_case_cmp.rs:81:5
404404
|
405405
LL | a.to_ascii_lowercase() == "a";
@@ -410,7 +410,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
410410
LL | a.eq_ignore_ascii_case("a");
411411
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
412412

413-
error: manually doing case-insensitive ASCII comparison
413+
error: manual case-insensitive ASCII comparison
414414
--> tests/ui/manual_ignore_case_cmp.rs:82:5
415415
|
416416
LL | "a" == b.to_ascii_lowercase();
@@ -421,7 +421,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
421421
LL | "a".eq_ignore_ascii_case(b);
422422
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
423423

424-
error: manually doing case-insensitive ASCII comparison
424+
error: manual case-insensitive ASCII comparison
425425
--> tests/ui/manual_ignore_case_cmp.rs:84:5
426426
|
427427
LL | b.to_ascii_lowercase() == a.to_ascii_lowercase();
@@ -432,7 +432,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
432432
LL | b.eq_ignore_ascii_case(&a);
433433
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
434434

435-
error: manually doing case-insensitive ASCII comparison
435+
error: manual case-insensitive ASCII comparison
436436
--> tests/ui/manual_ignore_case_cmp.rs:85:5
437437
|
438438
LL | b.to_ascii_lowercase() == "a";
@@ -443,7 +443,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
443443
LL | b.eq_ignore_ascii_case("a");
444444
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
445445

446-
error: manually doing case-insensitive ASCII comparison
446+
error: manual case-insensitive ASCII comparison
447447
--> tests/ui/manual_ignore_case_cmp.rs:86:5
448448
|
449449
LL | "a" == a.to_ascii_lowercase();
@@ -454,7 +454,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
454454
LL | "a".eq_ignore_ascii_case(&a);
455455
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
456456

457-
error: manually doing case-insensitive ASCII comparison
457+
error: manual case-insensitive ASCII comparison
458458
--> tests/ui/manual_ignore_case_cmp.rs:89:5
459459
|
460460
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -465,7 +465,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
465465
LL | a.eq_ignore_ascii_case(b);
466466
| ~~~~~~~~~~~~~~~~~~~~~~~~~
467467

468-
error: manually doing case-insensitive ASCII comparison
468+
error: manual case-insensitive ASCII comparison
469469
--> tests/ui/manual_ignore_case_cmp.rs:92:5
470470
|
471471
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -476,7 +476,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
476476
LL | a.eq_ignore_ascii_case(&b);
477477
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
478478

479-
error: manually doing case-insensitive ASCII comparison
479+
error: manual case-insensitive ASCII comparison
480480
--> tests/ui/manual_ignore_case_cmp.rs:95:5
481481
|
482482
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -487,7 +487,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
487487
LL | a.eq_ignore_ascii_case(b);
488488
| ~~~~~~~~~~~~~~~~~~~~~~~~~
489489

490-
error: manually doing case-insensitive ASCII comparison
490+
error: manual case-insensitive ASCII comparison
491491
--> tests/ui/manual_ignore_case_cmp.rs:96:5
492492
|
493493
LL | b.to_ascii_lowercase() == a.to_ascii_lowercase();
@@ -498,7 +498,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
498498
LL | b.eq_ignore_ascii_case(&a);
499499
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
500500

501-
error: manually doing case-insensitive ASCII comparison
501+
error: manual case-insensitive ASCII comparison
502502
--> tests/ui/manual_ignore_case_cmp.rs:99:5
503503
|
504504
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -509,7 +509,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
509509
LL | a.eq_ignore_ascii_case(b);
510510
| ~~~~~~~~~~~~~~~~~~~~~~~~~
511511

512-
error: manually doing case-insensitive ASCII comparison
512+
error: manual case-insensitive ASCII comparison
513513
--> tests/ui/manual_ignore_case_cmp.rs:102:5
514514
|
515515
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -520,7 +520,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
520520
LL | a.eq_ignore_ascii_case(b);
521521
| ~~~~~~~~~~~~~~~~~~~~~~~~~
522522

523-
error: manually doing case-insensitive ASCII comparison
523+
error: manual case-insensitive ASCII comparison
524524
--> tests/ui/manual_ignore_case_cmp.rs:105:5
525525
|
526526
LL | a.to_ascii_lowercase() == b.to_ascii_lowercase();
@@ -531,7 +531,7 @@ help: consider using `.eq_ignore_ascii_case()` instead
531531
LL | a.eq_ignore_ascii_case(b);
532532
| ~~~~~~~~~~~~~~~~~~~~~~~~~
533533

534-
error: manually doing case-insensitive ASCII comparison
534+
error: manual case-insensitive ASCII comparison
535535
--> tests/ui/manual_ignore_case_cmp.rs:106:5
536536
|
537537
LL | b.to_ascii_lowercase() == a.to_ascii_lowercase();

0 commit comments

Comments
 (0)
Please sign in to comment.