@@ -25,184 +25,214 @@ LL | x.split("💣");
25
25
| ^^^^ help: try using a `char` instead: `'💣'`
26
26
27
27
error: single-character string constant used as pattern
28
- --> $DIR/single_char_pattern.rs:20:16
28
+ --> $DIR/single_char_pattern.rs:20:23
29
+ |
30
+ LL | x.split_inclusive("x");
31
+ | ^^^ help: try using a `char` instead: `'x'`
32
+
33
+ error: single-character string constant used as pattern
34
+ --> $DIR/single_char_pattern.rs:21:16
29
35
|
30
36
LL | x.contains("x");
31
37
| ^^^ help: try using a `char` instead: `'x'`
32
38
33
39
error: single-character string constant used as pattern
34
- --> $DIR/single_char_pattern.rs:21 :19
40
+ --> $DIR/single_char_pattern.rs:22 :19
35
41
|
36
42
LL | x.starts_with("x");
37
43
| ^^^ help: try using a `char` instead: `'x'`
38
44
39
45
error: single-character string constant used as pattern
40
- --> $DIR/single_char_pattern.rs:22 :17
46
+ --> $DIR/single_char_pattern.rs:23 :17
41
47
|
42
48
LL | x.ends_with("x");
43
49
| ^^^ help: try using a `char` instead: `'x'`
44
50
45
51
error: single-character string constant used as pattern
46
- --> $DIR/single_char_pattern.rs:23 :12
52
+ --> $DIR/single_char_pattern.rs:24 :12
47
53
|
48
54
LL | x.find("x");
49
55
| ^^^ help: try using a `char` instead: `'x'`
50
56
51
57
error: single-character string constant used as pattern
52
- --> $DIR/single_char_pattern.rs:24 :13
58
+ --> $DIR/single_char_pattern.rs:25 :13
53
59
|
54
60
LL | x.rfind("x");
55
61
| ^^^ help: try using a `char` instead: `'x'`
56
62
57
63
error: single-character string constant used as pattern
58
- --> $DIR/single_char_pattern.rs:25 :14
64
+ --> $DIR/single_char_pattern.rs:26 :14
59
65
|
60
66
LL | x.rsplit("x");
61
67
| ^^^ help: try using a `char` instead: `'x'`
62
68
63
69
error: single-character string constant used as pattern
64
- --> $DIR/single_char_pattern.rs:26 :24
70
+ --> $DIR/single_char_pattern.rs:27 :24
65
71
|
66
72
LL | x.split_terminator("x");
67
73
| ^^^ help: try using a `char` instead: `'x'`
68
74
69
75
error: single-character string constant used as pattern
70
- --> $DIR/single_char_pattern.rs:27 :25
76
+ --> $DIR/single_char_pattern.rs:28 :25
71
77
|
72
78
LL | x.rsplit_terminator("x");
73
79
| ^^^ help: try using a `char` instead: `'x'`
74
80
75
81
error: single-character string constant used as pattern
76
- --> $DIR/single_char_pattern.rs:28 :17
82
+ --> $DIR/single_char_pattern.rs:29 :17
77
83
|
78
84
LL | x.splitn(2, "x");
79
85
| ^^^ help: try using a `char` instead: `'x'`
80
86
81
87
error: single-character string constant used as pattern
82
- --> $DIR/single_char_pattern.rs:29 :18
88
+ --> $DIR/single_char_pattern.rs:30 :18
83
89
|
84
90
LL | x.rsplitn(2, "x");
85
91
| ^^^ help: try using a `char` instead: `'x'`
86
92
87
93
error: single-character string constant used as pattern
88
- --> $DIR/single_char_pattern.rs:30:15
94
+ --> $DIR/single_char_pattern.rs:31:18
95
+ |
96
+ LL | x.split_once("x");
97
+ | ^^^ help: try using a `char` instead: `'x'`
98
+
99
+ error: single-character string constant used as pattern
100
+ --> $DIR/single_char_pattern.rs:32:19
101
+ |
102
+ LL | x.rsplit_once("x");
103
+ | ^^^ help: try using a `char` instead: `'x'`
104
+
105
+ error: single-character string constant used as pattern
106
+ --> $DIR/single_char_pattern.rs:33:15
89
107
|
90
108
LL | x.matches("x");
91
109
| ^^^ help: try using a `char` instead: `'x'`
92
110
93
111
error: single-character string constant used as pattern
94
- --> $DIR/single_char_pattern.rs:31 :16
112
+ --> $DIR/single_char_pattern.rs:34 :16
95
113
|
96
114
LL | x.rmatches("x");
97
115
| ^^^ help: try using a `char` instead: `'x'`
98
116
99
117
error: single-character string constant used as pattern
100
- --> $DIR/single_char_pattern.rs:32 :21
118
+ --> $DIR/single_char_pattern.rs:35 :21
101
119
|
102
120
LL | x.match_indices("x");
103
121
| ^^^ help: try using a `char` instead: `'x'`
104
122
105
123
error: single-character string constant used as pattern
106
- --> $DIR/single_char_pattern.rs:33 :22
124
+ --> $DIR/single_char_pattern.rs:36 :22
107
125
|
108
126
LL | x.rmatch_indices("x");
109
127
| ^^^ help: try using a `char` instead: `'x'`
110
128
111
129
error: single-character string constant used as pattern
112
- --> $DIR/single_char_pattern.rs:34 :26
130
+ --> $DIR/single_char_pattern.rs:37 :26
113
131
|
114
132
LL | x.trim_start_matches("x");
115
133
| ^^^ help: try using a `char` instead: `'x'`
116
134
117
135
error: single-character string constant used as pattern
118
- --> $DIR/single_char_pattern.rs:35 :24
136
+ --> $DIR/single_char_pattern.rs:38 :24
119
137
|
120
138
LL | x.trim_end_matches("x");
121
139
| ^^^ help: try using a `char` instead: `'x'`
122
140
123
141
error: single-character string constant used as pattern
124
- --> $DIR/single_char_pattern.rs:36 :20
142
+ --> $DIR/single_char_pattern.rs:39 :20
125
143
|
126
144
LL | x.strip_prefix("x");
127
145
| ^^^ help: try using a `char` instead: `'x'`
128
146
129
147
error: single-character string constant used as pattern
130
- --> $DIR/single_char_pattern.rs:37 :20
148
+ --> $DIR/single_char_pattern.rs:40 :20
131
149
|
132
150
LL | x.strip_suffix("x");
133
151
| ^^^ help: try using a `char` instead: `'x'`
134
152
135
153
error: single-character string constant used as pattern
136
- --> $DIR/single_char_pattern.rs:39:13
154
+ --> $DIR/single_char_pattern.rs:41:15
155
+ |
156
+ LL | x.replace("x", "y");
157
+ | ^^^ help: try using a `char` instead: `'x'`
158
+
159
+ error: single-character string constant used as pattern
160
+ --> $DIR/single_char_pattern.rs:42:16
161
+ |
162
+ LL | x.replacen("x", "y", 3);
163
+ | ^^^ help: try using a `char` instead: `'x'`
164
+
165
+ error: single-character string constant used as pattern
166
+ --> $DIR/single_char_pattern.rs:44:13
137
167
|
138
168
LL | x.split("/n");
139
169
| ^^^^ help: try using a `char` instead: `'/n'`
140
170
141
171
error: single-character string constant used as pattern
142
- --> $DIR/single_char_pattern.rs:40 :13
172
+ --> $DIR/single_char_pattern.rs:45 :13
143
173
|
144
174
LL | x.split("'");
145
175
| ^^^ help: try using a `char` instead: `'/''`
146
176
147
177
error: single-character string constant used as pattern
148
- --> $DIR/single_char_pattern.rs:41 :13
178
+ --> $DIR/single_char_pattern.rs:46 :13
149
179
|
150
180
LL | x.split("/'");
151
181
| ^^^^ help: try using a `char` instead: `'/''`
152
182
153
183
error: single-character string constant used as pattern
154
- --> $DIR/single_char_pattern.rs:46 :31
184
+ --> $DIR/single_char_pattern.rs:51 :31
155
185
|
156
- LL | x.replace(";" , ",").split(","); // issue #2978
186
+ LL | x.replace(';' , ",").split(","); // issue #2978
157
187
| ^^^ help: try using a `char` instead: `','`
158
188
159
189
error: single-character string constant used as pattern
160
- --> $DIR/single_char_pattern.rs:47 :19
190
+ --> $DIR/single_char_pattern.rs:52 :19
161
191
|
162
192
LL | x.starts_with("/x03"); // issue #2996
163
193
| ^^^^^^ help: try using a `char` instead: `'/x03'`
164
194
165
195
error: single-character string constant used as pattern
166
- --> $DIR/single_char_pattern.rs:54 :13
196
+ --> $DIR/single_char_pattern.rs:59 :13
167
197
|
168
198
LL | x.split(r"a");
169
199
| ^^^^ help: try using a `char` instead: `'a'`
170
200
171
201
error: single-character string constant used as pattern
172
- --> $DIR/single_char_pattern.rs:55 :13
202
+ --> $DIR/single_char_pattern.rs:60 :13
173
203
|
174
204
LL | x.split(r#"a"#);
175
205
| ^^^^^^ help: try using a `char` instead: `'a'`
176
206
177
207
error: single-character string constant used as pattern
178
- --> $DIR/single_char_pattern.rs:56 :13
208
+ --> $DIR/single_char_pattern.rs:61 :13
179
209
|
180
210
LL | x.split(r###"a"###);
181
211
| ^^^^^^^^^^ help: try using a `char` instead: `'a'`
182
212
183
213
error: single-character string constant used as pattern
184
- --> $DIR/single_char_pattern.rs:57 :13
214
+ --> $DIR/single_char_pattern.rs:62 :13
185
215
|
186
216
LL | x.split(r###"'"###);
187
217
| ^^^^^^^^^^ help: try using a `char` instead: `'/''`
188
218
189
219
error: single-character string constant used as pattern
190
- --> $DIR/single_char_pattern.rs:58 :13
220
+ --> $DIR/single_char_pattern.rs:63 :13
191
221
|
192
222
LL | x.split(r###"#"###);
193
223
| ^^^^^^^^^^ help: try using a `char` instead: `'#'`
194
224
195
225
error: single-character string constant used as pattern
196
- --> $DIR/single_char_pattern.rs:60 :13
226
+ --> $DIR/single_char_pattern.rs:65 :13
197
227
|
198
228
LL | x.split(r#"/"#);
199
229
| ^^^^^^ help: try using a `char` instead: `'/'`
200
230
201
231
error: single-character string constant used as pattern
202
- --> $DIR/single_char_pattern.rs:61 :13
232
+ --> $DIR/single_char_pattern.rs:66 :13
203
233
|
204
234
LL | x.split(r"/");
205
235
| ^^^^ help: try using a `char` instead: `'/'`
206
236
207
- error: aborting due to 34 previous errors
237
+ error: aborting due to 39 previous errors
208
238
0 commit comments