|
1 |
| -error: argument never used |
2 |
| - --> $DIR/issue-105225.rs:3:21 |
| 1 | +error: redundant argument |
| 2 | + --> $DIR/issue-105225.rs:3:14 |
3 | 3 | |
|
4 | 4 | LL | println!("{x}", x);
|
5 |
| - | ^ argument never used |
| 5 | + | ^^^^^ - help: this can be removed |
6 | 6 | |
|
7 |
| -help: the formatting string already captures the binding directly, it doesn't need to be included in the argument list |
8 |
| - --> $DIR/issue-105225.rs:3:21 |
| 7 | +note: the formatting specifier is referencing the binding already |
| 8 | + --> $DIR/issue-105225.rs:3:16 |
9 | 9 | |
|
10 | 10 | LL | println!("{x}", x);
|
11 |
| - | - ^ this can be removed |
12 |
| - | | |
13 |
| - | this formatting specifier is referencing the `x` binding |
| 11 | + | ^ |
14 | 12 |
|
15 |
| -error: argument never used |
16 |
| - --> $DIR/issue-105225.rs:6:27 |
| 13 | +error: redundant argument |
| 14 | + --> $DIR/issue-105225.rs:6:14 |
17 | 15 | |
|
18 | 16 | LL | println!("{x} {}", x, x);
|
19 |
| - | ^ argument never used |
| 17 | + | ^^^^^^^^ - help: this can be removed |
20 | 18 | |
|
21 |
| -help: the formatting string already captures the binding directly, it doesn't need to be included in the argument list |
22 |
| - --> $DIR/issue-105225.rs:6:27 |
| 19 | +note: the formatting specifier is referencing the binding already |
| 20 | + --> $DIR/issue-105225.rs:6:16 |
23 | 21 | |
|
24 | 22 | LL | println!("{x} {}", x, x);
|
25 |
| - | - ^ this can be removed |
26 |
| - | | |
27 |
| - | this formatting specifier is referencing the `x` binding |
| 23 | + | ^ |
28 | 24 |
|
29 |
| -error: argument never used |
30 |
| - --> $DIR/issue-105225.rs:9:27 |
| 25 | +error: redundant argument |
| 26 | + --> $DIR/issue-105225.rs:9:14 |
31 | 27 | |
|
32 | 28 | LL | println!("{} {x}", x, x);
|
33 |
| - | ^ argument never used |
| 29 | + | ^^^^^^^^ - help: this can be removed |
34 | 30 | |
|
35 |
| -help: the formatting string already captures the binding directly, it doesn't need to be included in the argument list |
36 |
| - --> $DIR/issue-105225.rs:9:27 |
| 31 | +note: the formatting specifier is referencing the binding already |
| 32 | + --> $DIR/issue-105225.rs:9:19 |
37 | 33 | |
|
38 | 34 | LL | println!("{} {x}", x, x);
|
39 |
| - | - ^ this can be removed |
40 |
| - | | |
41 |
| - | this formatting specifier is referencing the `x` binding |
| 35 | + | ^ |
42 | 36 |
|
43 |
| -error: multiple unused formatting arguments |
44 |
| - --> $DIR/issue-105225.rs:13:25 |
| 37 | +error: redundant argument |
| 38 | + --> $DIR/issue-105225.rs:13:14 |
45 | 39 | |
|
46 | 40 | LL | println!("{x} {y}", x, y);
|
47 |
| - | --------- ^ ^ argument never used |
48 |
| - | | | |
49 |
| - | | argument never used |
50 |
| - | multiple missing formatting specifiers |
| 41 | + | ^^^^^^^^^ |
51 | 42 | |
|
52 |
| -help: the formatting strings already captures the bindings directly, they don't need to be included in the argument list |
53 |
| - --> $DIR/issue-105225.rs:13:25 |
| 43 | +note: the formatting specifiers are referencing the bindings already |
| 44 | + --> $DIR/issue-105225.rs:13:16 |
54 | 45 | |
|
55 | 46 | LL | println!("{x} {y}", x, y);
|
56 |
| - | - - ^ ^ this can be removed |
57 |
| - | | | | |
58 |
| - | | | this can be removed |
59 |
| - | | this formatting specifier is referencing the `y` binding |
60 |
| - | this formatting specifier is referencing the `x` binding |
| 47 | + | ^ ^ |
| 48 | +help: this can be removed |
| 49 | + | |
| 50 | +LL - println!("{x} {y}", x, y); |
| 51 | +LL + println!("{x} {y}", ); |
| 52 | + | |
61 | 53 |
|
62 |
| -error: multiple unused formatting arguments |
63 |
| - --> $DIR/issue-105225.rs:17:43 |
| 54 | +error: redundant argument |
| 55 | + --> $DIR/issue-105225.rs:17:14 |
64 | 56 | |
|
65 | 57 | LL | println!("{} {} {x} {y} {}", x, x, x, y, y);
|
66 |
| - | ------------------ ^ ^ argument never used |
67 |
| - | | | |
68 |
| - | | argument never used |
69 |
| - | multiple missing formatting specifiers |
| 58 | + | ^^^^^^^^^^^^^^^^^^ |
70 | 59 | |
|
71 |
| -help: the formatting string already captures the binding directly, it doesn't need to be included in the argument list |
72 |
| - --> $DIR/issue-105225.rs:17:43 |
| 60 | +note: the formatting specifiers are referencing the bindings already |
| 61 | + --> $DIR/issue-105225.rs:17:26 |
73 | 62 | |
|
74 | 63 | LL | println!("{} {} {x} {y} {}", x, x, x, y, y);
|
75 |
| - | - ^ ^ this can be removed |
76 |
| - | | | |
77 |
| - | | this can be removed |
78 |
| - | this formatting specifier is referencing the `y` binding |
| 64 | + | ^ |
| 65 | +help: this can be removed |
| 66 | + | |
| 67 | +LL - println!("{} {} {x} {y} {}", x, x, x, y, y); |
| 68 | +LL + println!("{} {} {x} {y} {}", x, x, x, ); |
| 69 | + | |
79 | 70 |
|
80 | 71 | error: aborting due to 5 previous errors
|
81 | 72 |
|
0 commit comments