summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/manual_is_ascii_check.stderr
blob: 397cbe05c822ad7fba97b5f46d02fd569e2882fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:7:13
   |
LL |     assert!(matches!('x', 'a'..='z'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'x'.is_ascii_lowercase()`
   |
   = note: `-D clippy::manual-is-ascii-check` implied by `-D warnings`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:8:13
   |
LL |     assert!(matches!('X', 'A'..='Z'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'X'.is_ascii_uppercase()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:9:13
   |
LL |     assert!(matches!(b'x', b'a'..=b'z'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b'x'.is_ascii_lowercase()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:10:13
   |
LL |     assert!(matches!(b'X', b'A'..=b'Z'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b'X'.is_ascii_uppercase()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:13:13
   |
LL |     assert!(matches!(num, '0'..='9'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `num.is_ascii_digit()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:14:13
   |
LL |     assert!(matches!(b'1', b'0'..=b'9'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b'1'.is_ascii_digit()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:15:13
   |
LL |     assert!(matches!('x', 'A'..='Z' | 'a'..='z'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'x'.is_ascii_alphabetic()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:29:13
   |
LL |     assert!(matches!(b'1', b'0'..=b'9'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b'1'.is_ascii_digit()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:30:13
   |
LL |     assert!(matches!('X', 'A'..='Z'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'X'.is_ascii_uppercase()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:31:13
   |
LL |     assert!(matches!('x', 'A'..='Z' | 'a'..='z'));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'x'.is_ascii_alphabetic()`

error: manual check for common ascii range
  --> $DIR/manual_is_ascii_check.rs:41:23
   |
LL |     const FOO: bool = matches!('x', '0'..='9');
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'x'.is_ascii_digit()`

error: aborting due to 11 previous errors