|
1 | 1 | error: calling `insert_str()` using a single-character string literal |
2 | | - --> $DIR/single_char_insert_str.rs:6:5 |
| 2 | + --> $DIR/single_char_insert_str.rs:12:5 |
3 | 3 | | |
4 | 4 | LL | string.insert_str(0, "R"); |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, 'R')` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::single-char-push-str` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: calling `insert_str()` using a single-character string literal |
10 | | - --> $DIR/single_char_insert_str.rs:7:5 |
| 10 | + --> $DIR/single_char_insert_str.rs:13:5 |
11 | 11 | | |
12 | 12 | LL | string.insert_str(1, "'"); |
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(1, '/'')` |
14 | 14 |
|
15 | 15 | error: calling `insert_str()` using a single-character string literal |
16 | | - --> $DIR/single_char_insert_str.rs:12:5 |
| 16 | + --> $DIR/single_char_insert_str.rs:18:5 |
17 | 17 | | |
18 | 18 | LL | string.insert_str(0, "/x52"); |
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, '/x52')` |
20 | 20 |
|
21 | 21 | error: calling `insert_str()` using a single-character string literal |
22 | | - --> $DIR/single_char_insert_str.rs:13:5 |
| 22 | + --> $DIR/single_char_insert_str.rs:19:5 |
23 | 23 | | |
24 | 24 | LL | string.insert_str(0, "/u{0052}"); |
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, '/u{0052}')` |
26 | 26 |
|
27 | 27 | error: calling `insert_str()` using a single-character string literal |
28 | | - --> $DIR/single_char_insert_str.rs:15:5 |
| 28 | + --> $DIR/single_char_insert_str.rs:21:5 |
29 | 29 | | |
30 | 30 | LL | string.insert_str(x, r##"a"##); |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(x, 'a')` |
32 | 32 |
|
33 | 33 | error: calling `insert_str()` using a single-character string literal |
34 | | - --> $DIR/single_char_insert_str.rs:17:5 |
| 34 | + --> $DIR/single_char_insert_str.rs:23:5 |
35 | 35 | | |
36 | 36 | LL | string.insert_str(Y, r##"a"##); |
37 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(Y, 'a')` |
38 | 38 |
|
39 | | -error: aborting due to 6 previous errors |
| 39 | +error: calling `insert_str()` using a single-character string literal |
| 40 | + --> $DIR/single_char_insert_str.rs:25:5 |
| 41 | + | |
| 42 | +LL | get_string!().insert_str(1, "?"); |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `get_string!().insert(1, '?')` |
| 44 | + |
| 45 | +error: aborting due to 7 previous errors |
40 | 46 |
|
0 commit comments