@@ -25,184 +25,214 @@ LL | x.split("💣");
2525 | ^^^^ help: try using a `char` instead: `'💣'`
2626
2727error: 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
2935 |
3036LL | x.contains("x");
3137 | ^^^ help: try using a `char` instead: `'x'`
3238
3339error: single-character string constant used as pattern
34- --> $DIR/single_char_pattern.rs:21 :19
40+ --> $DIR/single_char_pattern.rs:22 :19
3541 |
3642LL | x.starts_with("x");
3743 | ^^^ help: try using a `char` instead: `'x'`
3844
3945error: single-character string constant used as pattern
40- --> $DIR/single_char_pattern.rs:22 :17
46+ --> $DIR/single_char_pattern.rs:23 :17
4147 |
4248LL | x.ends_with("x");
4349 | ^^^ help: try using a `char` instead: `'x'`
4450
4551error: single-character string constant used as pattern
46- --> $DIR/single_char_pattern.rs:23 :12
52+ --> $DIR/single_char_pattern.rs:24 :12
4753 |
4854LL | x.find("x");
4955 | ^^^ help: try using a `char` instead: `'x'`
5056
5157error: single-character string constant used as pattern
52- --> $DIR/single_char_pattern.rs:24 :13
58+ --> $DIR/single_char_pattern.rs:25 :13
5359 |
5460LL | x.rfind("x");
5561 | ^^^ help: try using a `char` instead: `'x'`
5662
5763error: single-character string constant used as pattern
58- --> $DIR/single_char_pattern.rs:25 :14
64+ --> $DIR/single_char_pattern.rs:26 :14
5965 |
6066LL | x.rsplit("x");
6167 | ^^^ help: try using a `char` instead: `'x'`
6268
6369error: single-character string constant used as pattern
64- --> $DIR/single_char_pattern.rs:26 :24
70+ --> $DIR/single_char_pattern.rs:27 :24
6571 |
6672LL | x.split_terminator("x");
6773 | ^^^ help: try using a `char` instead: `'x'`
6874
6975error: single-character string constant used as pattern
70- --> $DIR/single_char_pattern.rs:27 :25
76+ --> $DIR/single_char_pattern.rs:28 :25
7177 |
7278LL | x.rsplit_terminator("x");
7379 | ^^^ help: try using a `char` instead: `'x'`
7480
7581error: single-character string constant used as pattern
76- --> $DIR/single_char_pattern.rs:28 :17
82+ --> $DIR/single_char_pattern.rs:29 :17
7783 |
7884LL | x.splitn(2, "x");
7985 | ^^^ help: try using a `char` instead: `'x'`
8086
8187error: single-character string constant used as pattern
82- --> $DIR/single_char_pattern.rs:29 :18
88+ --> $DIR/single_char_pattern.rs:30 :18
8389 |
8490LL | x.rsplitn(2, "x");
8591 | ^^^ help: try using a `char` instead: `'x'`
8692
8793error: 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
89107 |
90108LL | x.matches("x");
91109 | ^^^ help: try using a `char` instead: `'x'`
92110
93111error: single-character string constant used as pattern
94- --> $DIR/single_char_pattern.rs:31 :16
112+ --> $DIR/single_char_pattern.rs:34 :16
95113 |
96114LL | x.rmatches("x");
97115 | ^^^ help: try using a `char` instead: `'x'`
98116
99117error: single-character string constant used as pattern
100- --> $DIR/single_char_pattern.rs:32 :21
118+ --> $DIR/single_char_pattern.rs:35 :21
101119 |
102120LL | x.match_indices("x");
103121 | ^^^ help: try using a `char` instead: `'x'`
104122
105123error: single-character string constant used as pattern
106- --> $DIR/single_char_pattern.rs:33 :22
124+ --> $DIR/single_char_pattern.rs:36 :22
107125 |
108126LL | x.rmatch_indices("x");
109127 | ^^^ help: try using a `char` instead: `'x'`
110128
111129error: single-character string constant used as pattern
112- --> $DIR/single_char_pattern.rs:34 :26
130+ --> $DIR/single_char_pattern.rs:37 :26
113131 |
114132LL | x.trim_start_matches("x");
115133 | ^^^ help: try using a `char` instead: `'x'`
116134
117135error: single-character string constant used as pattern
118- --> $DIR/single_char_pattern.rs:35 :24
136+ --> $DIR/single_char_pattern.rs:38 :24
119137 |
120138LL | x.trim_end_matches("x");
121139 | ^^^ help: try using a `char` instead: `'x'`
122140
123141error: single-character string constant used as pattern
124- --> $DIR/single_char_pattern.rs:36 :20
142+ --> $DIR/single_char_pattern.rs:39 :20
125143 |
126144LL | x.strip_prefix("x");
127145 | ^^^ help: try using a `char` instead: `'x'`
128146
129147error: single-character string constant used as pattern
130- --> $DIR/single_char_pattern.rs:37 :20
148+ --> $DIR/single_char_pattern.rs:40 :20
131149 |
132150LL | x.strip_suffix("x");
133151 | ^^^ help: try using a `char` instead: `'x'`
134152
135153error: 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
137167 |
138168LL | x.split("/n");
139169 | ^^^^ help: try using a `char` instead: `'/n'`
140170
141171error: single-character string constant used as pattern
142- --> $DIR/single_char_pattern.rs:40 :13
172+ --> $DIR/single_char_pattern.rs:45 :13
143173 |
144174LL | x.split("'");
145175 | ^^^ help: try using a `char` instead: `'/''`
146176
147177error: single-character string constant used as pattern
148- --> $DIR/single_char_pattern.rs:41 :13
178+ --> $DIR/single_char_pattern.rs:46 :13
149179 |
150180LL | x.split("/'");
151181 | ^^^^ help: try using a `char` instead: `'/''`
152182
153183error: single-character string constant used as pattern
154- --> $DIR/single_char_pattern.rs:46 :31
184+ --> $DIR/single_char_pattern.rs:51 :31
155185 |
156- LL | x.replace(";" , ",").split(","); // issue #2978
186+ LL | x.replace(';' , ",").split(","); // issue #2978
157187 | ^^^ help: try using a `char` instead: `','`
158188
159189error: single-character string constant used as pattern
160- --> $DIR/single_char_pattern.rs:47 :19
190+ --> $DIR/single_char_pattern.rs:52 :19
161191 |
162192LL | x.starts_with("/x03"); // issue #2996
163193 | ^^^^^^ help: try using a `char` instead: `'/x03'`
164194
165195error: single-character string constant used as pattern
166- --> $DIR/single_char_pattern.rs:54 :13
196+ --> $DIR/single_char_pattern.rs:59 :13
167197 |
168198LL | x.split(r"a");
169199 | ^^^^ help: try using a `char` instead: `'a'`
170200
171201error: single-character string constant used as pattern
172- --> $DIR/single_char_pattern.rs:55 :13
202+ --> $DIR/single_char_pattern.rs:60 :13
173203 |
174204LL | x.split(r#"a"#);
175205 | ^^^^^^ help: try using a `char` instead: `'a'`
176206
177207error: single-character string constant used as pattern
178- --> $DIR/single_char_pattern.rs:56 :13
208+ --> $DIR/single_char_pattern.rs:61 :13
179209 |
180210LL | x.split(r###"a"###);
181211 | ^^^^^^^^^^ help: try using a `char` instead: `'a'`
182212
183213error: single-character string constant used as pattern
184- --> $DIR/single_char_pattern.rs:57 :13
214+ --> $DIR/single_char_pattern.rs:62 :13
185215 |
186216LL | x.split(r###"'"###);
187217 | ^^^^^^^^^^ help: try using a `char` instead: `'/''`
188218
189219error: single-character string constant used as pattern
190- --> $DIR/single_char_pattern.rs:58 :13
220+ --> $DIR/single_char_pattern.rs:63 :13
191221 |
192222LL | x.split(r###"#"###);
193223 | ^^^^^^^^^^ help: try using a `char` instead: `'#'`
194224
195225error: single-character string constant used as pattern
196- --> $DIR/single_char_pattern.rs:60 :13
226+ --> $DIR/single_char_pattern.rs:65 :13
197227 |
198228LL | x.split(r#"/"#);
199229 | ^^^^^^ help: try using a `char` instead: `'/'`
200230
201231error: single-character string constant used as pattern
202- --> $DIR/single_char_pattern.rs:61 :13
232+ --> $DIR/single_char_pattern.rs:66 :13
203233 |
204234LL | x.split(r"/");
205235 | ^^^^ help: try using a `char` instead: `'/'`
206236
207- error: aborting due to 34 previous errors
237+ error: aborting due to 39 previous errors
208238
0 commit comments