|
1 | 1 | error: this looks like a formatting argument but it is not part of a formatting macro |
2 | | - --> tests/ui/literal_string_with_formatting_arg.rs:7:15 |
| 2 | + --> tests/ui/literal_string_with_formatting_arg.rs:26:14 |
3 | 3 | | |
4 | | -LL | x.expect("{y} {}"); |
5 | | - | ^^^ |
| 4 | +LL | let s = "{ш}"; |
| 5 | + | ^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::literal-string-with-formatting-args` implied by `-D warnings` |
8 | 8 | = help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_args)]` |
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:16 |
| 11 | + --> tests/ui/literal_string_with_formatting_arg.rs:32:15 |
| 12 | + | |
| 13 | +LL | x.expect("{y} {}"); |
| 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:33:16 |
12 | 18 | | |
13 | 19 | LL | x.expect(" {y} bla"); |
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:34:15 |
18 | 24 | | |
19 | 25 | LL | x.expect("{:?}"); |
20 | 26 | | ^^^^ |
21 | 27 |
|
22 | 28 | error: this looks like a formatting argument but it is not part of a formatting macro |
23 | | - --> tests/ui/literal_string_with_formatting_arg.rs:10:15 |
| 29 | + --> tests/ui/literal_string_with_formatting_arg.rs:35:15 |
24 | 30 | | |
25 | 31 | LL | x.expect("{y:?}"); |
26 | 32 | | ^^^^^ |
27 | 33 |
|
28 | 34 | error: these look like formatting arguments but are not part of a formatting macro |
29 | | - --> tests/ui/literal_string_with_formatting_arg.rs:11:16 |
| 35 | + --> tests/ui/literal_string_with_formatting_arg.rs:36:16 |
30 | 36 | | |
31 | 37 | LL | x.expect(" {y:?} {y:?} "); |
32 | 38 | | ^^^^^ ^^^^^ |
33 | 39 |
|
34 | 40 | error: this looks like a formatting argument but it is not part of a formatting macro |
35 | | - --> tests/ui/literal_string_with_formatting_arg.rs:12:23 |
| 41 | + --> tests/ui/literal_string_with_formatting_arg.rs:37:23 |
36 | 42 | | |
37 | 43 | LL | x.expect(" {y:..} {y:?} "); |
38 | 44 | | ^^^^^ |
39 | 45 |
|
40 | 46 | error: these look like formatting arguments but are 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:38:16 |
42 | 48 | | |
43 | 49 | LL | x.expect(r"{y:?} {y:?} "); |
44 | 50 | | ^^^^^ ^^^^^ |
45 | 51 |
|
46 | 52 | error: this looks like a formatting argument but it is not part of a formatting macro |
47 | | - --> tests/ui/literal_string_with_formatting_arg.rs:14:16 |
| 53 | + --> tests/ui/literal_string_with_formatting_arg.rs:39:16 |
48 | 54 | | |
49 | 55 | LL | x.expect(r"{y:?} y:?}"); |
50 | 56 | | ^^^^^ |
51 | 57 |
|
52 | 58 | error: these look like formatting arguments but are not part of a formatting macro |
53 | | - --> tests/ui/literal_string_with_formatting_arg.rs:15:19 |
| 59 | + --> tests/ui/literal_string_with_formatting_arg.rs:40:19 |
54 | 60 | | |
55 | 61 | LL | x.expect(r##" {y:?} {y:?} "##); |
56 | 62 | | ^^^^^ ^^^^^ |
57 | 63 |
|
58 | 64 | error: this looks like a formatting argument but it is not part of a formatting macro |
59 | | - --> tests/ui/literal_string_with_formatting_arg.rs:17:18 |
| 65 | + --> tests/ui/literal_string_with_formatting_arg.rs:41:14 |
| 66 | + | |
| 67 | +LL | assert!("{y}".is_ascii()); |
| 68 | + | ^^^ |
| 69 | + |
| 70 | +error: this looks like a formatting argument but it is not part of a formatting macro |
| 71 | + --> tests/ui/literal_string_with_formatting_arg.rs:43:18 |
60 | 72 | | |
61 | 73 | LL | x.expect("———{:?}"); |
62 | 74 | | ^^^^ |
63 | 75 |
|
64 | 76 | error: this looks like a formatting argument but it is not part of a formatting macro |
65 | | - --> tests/ui/literal_string_with_formatting_arg.rs:27:19 |
| 77 | + --> tests/ui/literal_string_with_formatting_arg.rs:53:19 |
66 | 78 | | |
67 | 79 | LL | x.expect(r##" {x:?} "##); // `x` doesn't exist so we shoud not lint |
68 | 80 | | ^^^^^ |
69 | 81 |
|
70 | | -error: aborting due to 11 previous errors |
| 82 | +error: aborting due to 13 previous errors |
71 | 83 |
|
0 commit comments