|
1 | | -error: these look like formatting arguments but are not part of a formatting macro |
| 1 | +error: this looks like a formatting argument but it is not part of a formatting macro |
2 | 2 | --> tests/ui/literal_string_with_formatting_arg.rs:7:15 |
3 | 3 | | |
4 | 4 | LL | x.expect("{y} {}"); |
5 | | - | ^^^^^^ |
| 5 | + | ^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::literal-string-with-formatting-arg` implied by `-D warnings` |
8 | 8 | = help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_arg)]` |
9 | 9 |
|
10 | 10 | error: this looks like a formatting argument but it is not part of a formatting macro |
11 | | - --> tests/ui/literal_string_with_formatting_arg.rs:8:15 |
| 11 | + --> tests/ui/literal_string_with_formatting_arg.rs:8:16 |
| 12 | + | |
| 13 | +LL | x.expect(" {y} bla"); |
| 14 | + | ^^^ |
| 15 | + |
| 16 | +error: this looks like a formatting argument but it is not part of a formatting macro |
| 17 | + --> tests/ui/literal_string_with_formatting_arg.rs:9:15 |
12 | 18 | | |
13 | 19 | LL | x.expect("{:?}"); |
14 | 20 | | ^^^^ |
15 | 21 |
|
16 | 22 | error: this looks like a formatting argument but it is not part of a formatting macro |
17 | | - --> tests/ui/literal_string_with_formatting_arg.rs:9:15 |
| 23 | + --> tests/ui/literal_string_with_formatting_arg.rs:10:15 |
18 | 24 | | |
19 | 25 | LL | x.expect("{y:?}"); |
20 | 26 | | ^^^^^ |
21 | 27 |
|
22 | 28 | error: these look like formatting arguments but are not part of a formatting macro |
23 | | - --> tests/ui/literal_string_with_formatting_arg.rs:10:16 |
| 29 | + --> tests/ui/literal_string_with_formatting_arg.rs:11:16 |
24 | 30 | | |
25 | 31 | LL | x.expect(" {y:?} {y:?} "); |
26 | 32 | | ^^^^^ ^^^^^ |
27 | 33 |
|
28 | 34 | error: this looks like a formatting argument but it is not part of a formatting macro |
29 | | - --> tests/ui/literal_string_with_formatting_arg.rs:11:23 |
| 35 | + --> tests/ui/literal_string_with_formatting_arg.rs:12:23 |
30 | 36 | | |
31 | 37 | LL | x.expect(" {y:..} {y:?} "); |
32 | 38 | | ^^^^^ |
33 | 39 |
|
34 | 40 | error: these look like formatting arguments but are not part of a formatting macro |
35 | | - --> tests/ui/literal_string_with_formatting_arg.rs:12:16 |
| 41 | + --> tests/ui/literal_string_with_formatting_arg.rs:13:16 |
36 | 42 | | |
37 | 43 | LL | x.expect(r"{y:?} {y:?} "); |
38 | 44 | | ^^^^^ ^^^^^ |
39 | 45 |
|
40 | 46 | error: this looks like a formatting argument but it is not part of a formatting macro |
41 | | - --> tests/ui/literal_string_with_formatting_arg.rs:13:16 |
| 47 | + --> tests/ui/literal_string_with_formatting_arg.rs:14:16 |
42 | 48 | | |
43 | 49 | LL | x.expect(r"{y:?} y:?}"); |
44 | 50 | | ^^^^^ |
45 | 51 |
|
46 | 52 | error: these look like formatting arguments but are not part of a formatting macro |
47 | | - --> tests/ui/literal_string_with_formatting_arg.rs:14:19 |
| 53 | + --> tests/ui/literal_string_with_formatting_arg.rs:15:19 |
48 | 54 | | |
49 | 55 | LL | x.expect(r##" {y:?} {y:?} "##); |
50 | 56 | | ^^^^^ ^^^^^ |
51 | 57 |
|
52 | | -error: this looks like a formatting argument but it is not part of a formatting macro |
53 | | - --> tests/ui/literal_string_with_formatting_arg.rs:15:17 |
54 | | - | |
55 | | -LL | "\\.+*?()|[]{}^$#&-~".chars().any(|x| x == 'a'); |
56 | | - | ^^ |
57 | | - |
58 | 58 | error: this looks like a formatting argument but it is not part of a formatting macro |
59 | 59 | --> tests/ui/literal_string_with_formatting_arg.rs:17:18 |
60 | 60 | | |
61 | | -LL | x.expect("———{}"); |
62 | | - | ^^ |
| 61 | +LL | x.expect("———{:?}"); |
| 62 | + | ^^^^ |
63 | 63 |
|
64 | 64 | error: aborting due to 10 previous errors |
65 | 65 |
|
0 commit comments