@@ -43,34 +43,64 @@ LL | assert!(matches!('x', 'A'..='Z' | 'a'..='z'));
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'x'.is_ascii_alphabetic()`
44
44
45
45
error: manual check for common ascii range
46
- --> $DIR/manual_is_ascii_check.rs:18 :13
46
+ --> $DIR/manual_is_ascii_check.rs:19 :13
47
47
|
48
48
LL | assert!((b'0'..=b'9').contains(&b'0'));
49
49
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&b'0'.is_ascii_digit()`
50
50
51
51
error: manual check for common ascii range
52
- --> $DIR/manual_is_ascii_check.rs:30:13
52
+ --> $DIR/manual_is_ascii_check.rs:20:13
53
+ |
54
+ LL | assert!((b'a'..=b'z').contains(&b'a'));
55
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&b'a'.is_ascii_lowercase()`
56
+
57
+ error: manual check for common ascii range
58
+ --> $DIR/manual_is_ascii_check.rs:21:13
59
+ |
60
+ LL | assert!((b'A'..=b'Z').contains(&b'A'));
61
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&b'A'.is_ascii_uppercase()`
62
+
63
+ error: manual check for common ascii range
64
+ --> $DIR/manual_is_ascii_check.rs:23:13
65
+ |
66
+ LL | assert!(('0'..='9').contains(&'0'));
67
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'0'.is_ascii_digit()`
68
+
69
+ error: manual check for common ascii range
70
+ --> $DIR/manual_is_ascii_check.rs:24:13
71
+ |
72
+ LL | assert!(('a'..='z').contains(&'a'));
73
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a'.is_ascii_lowercase()`
74
+
75
+ error: manual check for common ascii range
76
+ --> $DIR/manual_is_ascii_check.rs:25:13
77
+ |
78
+ LL | assert!(('A'..='Z').contains(&'A'));
79
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'A'.is_ascii_uppercase()`
80
+
81
+ error: manual check for common ascii range
82
+ --> $DIR/manual_is_ascii_check.rs:37:13
53
83
|
54
84
LL | assert!(matches!(b'1', b'0'..=b'9'));
55
85
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b'1'.is_ascii_digit()`
56
86
57
87
error: manual check for common ascii range
58
- --> $DIR/manual_is_ascii_check.rs:31 :13
88
+ --> $DIR/manual_is_ascii_check.rs:38 :13
59
89
|
60
90
LL | assert!(matches!('X', 'A'..='Z'));
61
91
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'X'.is_ascii_uppercase()`
62
92
63
93
error: manual check for common ascii range
64
- --> $DIR/manual_is_ascii_check.rs:32 :13
94
+ --> $DIR/manual_is_ascii_check.rs:39 :13
65
95
|
66
96
LL | assert!(matches!('x', 'A'..='Z' | 'a'..='z'));
67
97
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'x'.is_ascii_alphabetic()`
68
98
69
99
error: manual check for common ascii range
70
- --> $DIR/manual_is_ascii_check.rs:42 :23
100
+ --> $DIR/manual_is_ascii_check.rs:49 :23
71
101
|
72
102
LL | const FOO: bool = matches!('x', '0'..='9');
73
103
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `'x'.is_ascii_digit()`
74
104
75
- error: aborting due to 12 previous errors
105
+ error: aborting due to 17 previous errors
76
106
0 commit comments