]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-99265.stderr
Auto merge of #106975 - tmiasko:basic-blocks-cache, r=cjgillot
[rust.git] / tests / ui / macros / issue-99265.stderr
1 warning: named argument `a` is not used by name
2   --> $DIR/issue-99265.rs:5:24
3    |
4 LL |     println!("{b} {}", a=1, b=2);
5    |                   --   ^ this named argument is referred to by position in formatting string
6    |                   |
7    |                   this formatting argument uses named argument `a` by position
8    |
9    = note: `#[warn(named_arguments_used_positionally)]` on by default
10 help: use the named argument by name to avoid ambiguity
11    |
12 LL |     println!("{b} {a}", a=1, b=2);
13    |                    +
14
15 warning: named argument `a` is not used by name
16   --> $DIR/issue-99265.rs:9:35
17    |
18 LL |     println!("{} {} {} {} {}", 0, a=1, b=2, c=3, d=4);
19    |                  --               ^ this named argument is referred to by position in formatting string
20    |                  |
21    |                  this formatting argument uses named argument `a` by position
22    |
23 help: use the named argument by name to avoid ambiguity
24    |
25 LL |     println!("{} {a} {} {} {}", 0, a=1, b=2, c=3, d=4);
26    |                   +
27
28 warning: named argument `b` is not used by name
29   --> $DIR/issue-99265.rs:9:40
30    |
31 LL |     println!("{} {} {} {} {}", 0, a=1, b=2, c=3, d=4);
32    |                     --                 ^ this named argument is referred to by position in formatting string
33    |                     |
34    |                     this formatting argument uses named argument `b` by position
35    |
36 help: use the named argument by name to avoid ambiguity
37    |
38 LL |     println!("{} {} {b} {} {}", 0, a=1, b=2, c=3, d=4);
39    |                      +
40
41 warning: named argument `c` is not used by name
42   --> $DIR/issue-99265.rs:9:45
43    |
44 LL |     println!("{} {} {} {} {}", 0, a=1, b=2, c=3, d=4);
45    |                        --                   ^ this named argument is referred to by position in formatting string
46    |                        |
47    |                        this formatting argument uses named argument `c` by position
48    |
49 help: use the named argument by name to avoid ambiguity
50    |
51 LL |     println!("{} {} {} {c} {}", 0, a=1, b=2, c=3, d=4);
52    |                         +
53
54 warning: named argument `d` is not used by name
55   --> $DIR/issue-99265.rs:9:50
56    |
57 LL |     println!("{} {} {} {} {}", 0, a=1, b=2, c=3, d=4);
58    |                           --                     ^ this named argument is referred to by position in formatting string
59    |                           |
60    |                           this formatting argument uses named argument `d` by position
61    |
62 help: use the named argument by name to avoid ambiguity
63    |
64 LL |     println!("{} {} {} {} {d}", 0, a=1, b=2, c=3, d=4);
65    |                            +
66
67 warning: named argument `width` is not used by name
68   --> $DIR/issue-99265.rs:19:35
69    |
70 LL |     println!("Hello {:1$}!", "x", width = 5);
71    |                       --          ^^^^^ this named argument is referred to by position in formatting string
72    |                       |
73    |                       this formatting argument uses named argument `width` by position
74    |
75 help: use the named argument by name to avoid ambiguity
76    |
77 LL |     println!("Hello {:width$}!", "x", width = 5);
78    |                       ~~~~~~
79
80 warning: named argument `f` is not used by name
81   --> $DIR/issue-99265.rs:23:33
82    |
83 LL |     println!("Hello {:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
84    |                     --------    ^ this named argument is referred to by position in formatting string
85    |                     |
86    |                     this formatting argument uses named argument `f` by position
87    |
88 help: use the named argument by name to avoid ambiguity
89    |
90 LL |     println!("Hello {f:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
91    |                      +
92
93 warning: named argument `precision` is not used by name
94   --> $DIR/issue-99265.rs:23:57
95    |
96 LL |     println!("Hello {:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
97    |                          --                             ^^^^^^^^^ this named argument is referred to by position in formatting string
98    |                          |
99    |                          this formatting argument uses named argument `precision` by position
100    |
101 help: use the named argument by name to avoid ambiguity
102    |
103 LL |     println!("Hello {:1$.precision$}!", f = 0.02f32, width = 5, precision = 2);
104    |                          ~~~~~~~~~~
105
106 warning: named argument `width` is not used by name
107   --> $DIR/issue-99265.rs:23:46
108    |
109 LL |     println!("Hello {:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
110    |                       --                     ^^^^^ this named argument is referred to by position in formatting string
111    |                       |
112    |                       this formatting argument uses named argument `width` by position
113    |
114 help: use the named argument by name to avoid ambiguity
115    |
116 LL |     println!("Hello {:width$.2$}!", f = 0.02f32, width = 5, precision = 2);
117    |                       ~~~~~~
118
119 warning: named argument `f` is not used by name
120   --> $DIR/issue-99265.rs:31:34
121    |
122 LL |     println!("Hello {0:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
123    |                     ---------    ^ this named argument is referred to by position in formatting string
124    |                     |
125    |                     this formatting argument uses named argument `f` by position
126    |
127 help: use the named argument by name to avoid ambiguity
128    |
129 LL |     println!("Hello {f:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
130    |                      ~
131
132 warning: named argument `precision` is not used by name
133   --> $DIR/issue-99265.rs:31:58
134    |
135 LL |     println!("Hello {0:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
136    |                           --                             ^^^^^^^^^ this named argument is referred to by position in formatting string
137    |                           |
138    |                           this formatting argument uses named argument `precision` by position
139    |
140 help: use the named argument by name to avoid ambiguity
141    |
142 LL |     println!("Hello {0:1$.precision$}!", f = 0.02f32, width = 5, precision = 2);
143    |                           ~~~~~~~~~~
144
145 warning: named argument `width` is not used by name
146   --> $DIR/issue-99265.rs:31:47
147    |
148 LL |     println!("Hello {0:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
149    |                        --                     ^^^^^ this named argument is referred to by position in formatting string
150    |                        |
151    |                        this formatting argument uses named argument `width` by position
152    |
153 help: use the named argument by name to avoid ambiguity
154    |
155 LL |     println!("Hello {0:width$.2$}!", f = 0.02f32, width = 5, precision = 2);
156    |                        ~~~~~~
157
158 warning: named argument `f` is not used by name
159   --> $DIR/issue-99265.rs:49:9
160    |
161 LL |         "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
162    |                    --------- this formatting argument uses named argument `f` by position
163 ...
164 LL |         f = 0.02f32,
165    |         ^ this named argument is referred to by position in formatting string
166    |
167 help: use the named argument by name to avoid ambiguity
168    |
169 LL |         "{}, Hello {f:2$.3$} {4:5$.6$}! {1}",
170    |                     ~
171
172 warning: named argument `precision` is not used by name
173   --> $DIR/issue-99265.rs:54:9
174    |
175 LL |         "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
176    |                          -- this formatting argument uses named argument `precision` by position
177 ...
178 LL |         precision = 2,
179    |         ^^^^^^^^^ this named argument is referred to by position in formatting string
180    |
181 help: use the named argument by name to avoid ambiguity
182    |
183 LL |         "{}, Hello {1:2$.precision$} {4:5$.6$}! {1}",
184    |                          ~~~~~~~~~~
185
186 warning: named argument `width` is not used by name
187   --> $DIR/issue-99265.rs:52:9
188    |
189 LL |         "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
190    |                       -- this formatting argument uses named argument `width` by position
191 ...
192 LL |         width = 5,
193    |         ^^^^^ this named argument is referred to by position in formatting string
194    |
195 help: use the named argument by name to avoid ambiguity
196    |
197 LL |         "{}, Hello {1:width$.3$} {4:5$.6$}! {1}",
198    |                       ~~~~~~
199
200 warning: named argument `g` is not used by name
201   --> $DIR/issue-99265.rs:56:9
202    |
203 LL |         "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
204    |                              --------- this formatting argument uses named argument `g` by position
205 ...
206 LL |         g = 0.02f32,
207    |         ^ this named argument is referred to by position in formatting string
208    |
209 help: use the named argument by name to avoid ambiguity
210    |
211 LL |         "{}, Hello {1:2$.3$} {g:5$.6$}! {1}",
212    |                               ~
213
214 warning: named argument `precision2` is not used by name
215   --> $DIR/issue-99265.rs:60:9
216    |
217 LL |         "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
218    |                                    -- this formatting argument uses named argument `precision2` by position
219 ...
220 LL |         precision2 = 2
221    |         ^^^^^^^^^^ this named argument is referred to by position in formatting string
222    |
223 help: use the named argument by name to avoid ambiguity
224    |
225 LL |         "{}, Hello {1:2$.3$} {4:5$.precision2$}! {1}",
226    |                                    ~~~~~~~~~~~
227
228 warning: named argument `width2` is not used by name
229   --> $DIR/issue-99265.rs:58:9
230    |
231 LL |         "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
232    |                                 -- this formatting argument uses named argument `width2` by position
233 ...
234 LL |         width2 = 5,
235    |         ^^^^^^ this named argument is referred to by position in formatting string
236    |
237 help: use the named argument by name to avoid ambiguity
238    |
239 LL |         "{}, Hello {1:2$.3$} {4:width2$.6$}! {1}",
240    |                                 ~~~~~~~
241
242 warning: named argument `f` is not used by name
243   --> $DIR/issue-99265.rs:49:9
244    |
245 LL |         "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
246    |                                         --- this formatting argument uses named argument `f` by position
247 ...
248 LL |         f = 0.02f32,
249    |         ^ this named argument is referred to by position in formatting string
250    |
251 help: use the named argument by name to avoid ambiguity
252    |
253 LL |         "{}, Hello {1:2$.3$} {4:5$.6$}! {f}",
254    |                                          ~
255
256 warning: named argument `f` is not used by name
257   --> $DIR/issue-99265.rs:64:31
258    |
259 LL |     println!("Hello {:0.1}!", f = 0.02f32);
260    |                     ------    ^ this named argument is referred to by position in formatting string
261    |                     |
262    |                     this formatting argument uses named argument `f` by position
263    |
264 help: use the named argument by name to avoid ambiguity
265    |
266 LL |     println!("Hello {f:0.1}!", f = 0.02f32);
267    |                      +
268
269 warning: named argument `f` is not used by name
270   --> $DIR/issue-99265.rs:68:32
271    |
272 LL |     println!("Hello {0:0.1}!", f = 0.02f32);
273    |                     -------    ^ this named argument is referred to by position in formatting string
274    |                     |
275    |                     this formatting argument uses named argument `f` by position
276    |
277 help: use the named argument by name to avoid ambiguity
278    |
279 LL |     println!("Hello {f:0.1}!", f = 0.02f32);
280    |                      ~
281
282 warning: named argument `v` is not used by name
283   --> $DIR/issue-99265.rs:79:23
284    |
285 LL |     println!("{:0$}", v = val);
286    |               -----   ^ this named argument is referred to by position in formatting string
287    |               |
288    |               this formatting argument uses named argument `v` by position
289    |
290 help: use the named argument by name to avoid ambiguity
291    |
292 LL |     println!("{v:0$}", v = val);
293    |                +
294
295 warning: named argument `v` is not used by name
296   --> $DIR/issue-99265.rs:79:23
297    |
298 LL |     println!("{:0$}", v = val);
299    |                 --    ^ this named argument is referred to by position in formatting string
300    |                 |
301    |                 this formatting argument uses named argument `v` by position
302    |
303 help: use the named argument by name to avoid ambiguity
304    |
305 LL |     println!("{:v$}", v = val);
306    |                 ~~
307
308 warning: named argument `v` is not used by name
309   --> $DIR/issue-99265.rs:84:24
310    |
311 LL |     println!("{0:0$}", v = val);
312    |               ------   ^ this named argument is referred to by position in formatting string
313    |               |
314    |               this formatting argument uses named argument `v` by position
315    |
316 help: use the named argument by name to avoid ambiguity
317    |
318 LL |     println!("{v:0$}", v = val);
319    |                ~
320
321 warning: named argument `v` is not used by name
322   --> $DIR/issue-99265.rs:84:24
323    |
324 LL |     println!("{0:0$}", v = val);
325    |                  --    ^ this named argument is referred to by position in formatting string
326    |                  |
327    |                  this formatting argument uses named argument `v` by position
328    |
329 help: use the named argument by name to avoid ambiguity
330    |
331 LL |     println!("{0:v$}", v = val);
332    |                  ~~
333
334 warning: named argument `v` is not used by name
335   --> $DIR/issue-99265.rs:89:26
336    |
337 LL |     println!("{:0$.0$}", v = val);
338    |               --------   ^ this named argument is referred to by position in formatting string
339    |               |
340    |               this formatting argument uses named argument `v` by position
341    |
342 help: use the named argument by name to avoid ambiguity
343    |
344 LL |     println!("{v:0$.0$}", v = val);
345    |                +
346
347 warning: named argument `v` is not used by name
348   --> $DIR/issue-99265.rs:89:26
349    |
350 LL |     println!("{:0$.0$}", v = val);
351    |                    --    ^ this named argument is referred to by position in formatting string
352    |                    |
353    |                    this formatting argument uses named argument `v` by position
354    |
355 help: use the named argument by name to avoid ambiguity
356    |
357 LL |     println!("{:0$.v$}", v = val);
358    |                    ~~
359
360 warning: named argument `v` is not used by name
361   --> $DIR/issue-99265.rs:89:26
362    |
363 LL |     println!("{:0$.0$}", v = val);
364    |                 --       ^ this named argument is referred to by position in formatting string
365    |                 |
366    |                 this formatting argument uses named argument `v` by position
367    |
368 help: use the named argument by name to avoid ambiguity
369    |
370 LL |     println!("{:v$.0$}", v = val);
371    |                 ~~
372
373 warning: named argument `v` is not used by name
374   --> $DIR/issue-99265.rs:96:27
375    |
376 LL |     println!("{0:0$.0$}", v = val);
377    |               ---------   ^ this named argument is referred to by position in formatting string
378    |               |
379    |               this formatting argument uses named argument `v` by position
380    |
381 help: use the named argument by name to avoid ambiguity
382    |
383 LL |     println!("{v:0$.0$}", v = val);
384    |                ~
385
386 warning: named argument `v` is not used by name
387   --> $DIR/issue-99265.rs:96:27
388    |
389 LL |     println!("{0:0$.0$}", v = val);
390    |                     --    ^ this named argument is referred to by position in formatting string
391    |                     |
392    |                     this formatting argument uses named argument `v` by position
393    |
394 help: use the named argument by name to avoid ambiguity
395    |
396 LL |     println!("{0:0$.v$}", v = val);
397    |                     ~~
398
399 warning: named argument `v` is not used by name
400   --> $DIR/issue-99265.rs:96:27
401    |
402 LL |     println!("{0:0$.0$}", v = val);
403    |                  --       ^ this named argument is referred to by position in formatting string
404    |                  |
405    |                  this formatting argument uses named argument `v` by position
406    |
407 help: use the named argument by name to avoid ambiguity
408    |
409 LL |     println!("{0:v$.0$}", v = val);
410    |                  ~~
411
412 warning: named argument `a` is not used by name
413   --> $DIR/issue-99265.rs:104:28
414    |
415 LL |     println!("{} {a} {0}", a = 1);
416    |               --           ^ this named argument is referred to by position in formatting string
417    |               |
418    |               this formatting argument uses named argument `a` by position
419    |
420 help: use the named argument by name to avoid ambiguity
421    |
422 LL |     println!("{a} {a} {0}", a = 1);
423    |                +
424
425 warning: named argument `a` is not used by name
426   --> $DIR/issue-99265.rs:104:28
427    |
428 LL |     println!("{} {a} {0}", a = 1);
429    |                      ---   ^ this named argument is referred to by position in formatting string
430    |                      |
431    |                      this formatting argument uses named argument `a` by position
432    |
433 help: use the named argument by name to avoid ambiguity
434    |
435 LL |     println!("{} {a} {a}", a = 1);
436    |                       ~
437
438 warning: named argument `a` is not used by name
439   --> $DIR/issue-99265.rs:115:14
440    |
441 LL |                 {:1$.2$}",
442    |                 -------- this formatting argument uses named argument `a` by position
443 ...
444 LL |              a = 1.0, b = 1, c = 2,
445    |              ^ this named argument is referred to by position in formatting string
446    |
447 help: use the named argument by name to avoid ambiguity
448    |
449 LL |                 {a:1$.2$}",
450    |                  +
451
452 warning: named argument `c` is not used by name
453   --> $DIR/issue-99265.rs:115:30
454    |
455 LL |                 {:1$.2$}",
456    |                      -- this formatting argument uses named argument `c` by position
457 ...
458 LL |              a = 1.0, b = 1, c = 2,
459    |                              ^ this named argument is referred to by position in formatting string
460    |
461 help: use the named argument by name to avoid ambiguity
462    |
463 LL |                 {:1$.c$}",
464    |                      ~~
465
466 warning: named argument `b` is not used by name
467   --> $DIR/issue-99265.rs:115:23
468    |
469 LL |                 {:1$.2$}",
470    |                   -- this formatting argument uses named argument `b` by position
471 ...
472 LL |              a = 1.0, b = 1, c = 2,
473    |                       ^ this named argument is referred to by position in formatting string
474    |
475 help: use the named argument by name to avoid ambiguity
476    |
477 LL |                 {:b$.2$}",
478    |                   ~~
479
480 warning: named argument `a` is not used by name
481   --> $DIR/issue-99265.rs:126:14
482    |
483 LL |                 {0:1$.2$}",
484    |                 --------- this formatting argument uses named argument `a` by position
485 ...
486 LL |              a = 1.0, b = 1, c = 2,
487    |              ^ this named argument is referred to by position in formatting string
488    |
489 help: use the named argument by name to avoid ambiguity
490    |
491 LL |                 {a:1$.2$}",
492    |                  ~
493
494 warning: named argument `c` is not used by name
495   --> $DIR/issue-99265.rs:126:30
496    |
497 LL |                 {0:1$.2$}",
498    |                       -- this formatting argument uses named argument `c` by position
499 ...
500 LL |              a = 1.0, b = 1, c = 2,
501    |                              ^ this named argument is referred to by position in formatting string
502    |
503 help: use the named argument by name to avoid ambiguity
504    |
505 LL |                 {0:1$.c$}",
506    |                       ~~
507
508 warning: named argument `b` is not used by name
509   --> $DIR/issue-99265.rs:126:23
510    |
511 LL |                 {0:1$.2$}",
512    |                    -- this formatting argument uses named argument `b` by position
513 ...
514 LL |              a = 1.0, b = 1, c = 2,
515    |                       ^ this named argument is referred to by position in formatting string
516    |
517 help: use the named argument by name to avoid ambiguity
518    |
519 LL |                 {0:b$.2$}",
520    |                    ~~
521
522 warning: named argument `x` is not used by name
523   --> $DIR/issue-99265.rs:132:30
524    |
525 LL |     println!("{{{:1$.2$}}}", x = 1.0, width = 3, precision = 2);
526    |                 --------     ^ this named argument is referred to by position in formatting string
527    |                 |
528    |                 this formatting argument uses named argument `x` by position
529    |
530 help: use the named argument by name to avoid ambiguity
531    |
532 LL |     println!("{{{x:1$.2$}}}", x = 1.0, width = 3, precision = 2);
533    |                  +
534
535 warning: named argument `precision` is not used by name
536   --> $DIR/issue-99265.rs:132:50
537    |
538 LL |     println!("{{{:1$.2$}}}", x = 1.0, width = 3, precision = 2);
539    |                      --                          ^^^^^^^^^ this named argument is referred to by position in formatting string
540    |                      |
541    |                      this formatting argument uses named argument `precision` by position
542    |
543 help: use the named argument by name to avoid ambiguity
544    |
545 LL |     println!("{{{:1$.precision$}}}", x = 1.0, width = 3, precision = 2);
546    |                      ~~~~~~~~~~
547
548 warning: named argument `width` is not used by name
549   --> $DIR/issue-99265.rs:132:39
550    |
551 LL |     println!("{{{:1$.2$}}}", x = 1.0, width = 3, precision = 2);
552    |                   --                  ^^^^^ this named argument is referred to by position in formatting string
553    |                   |
554    |                   this formatting argument uses named argument `width` by position
555    |
556 help: use the named argument by name to avoid ambiguity
557    |
558 LL |     println!("{{{:width$.2$}}}", x = 1.0, width = 3, precision = 2);
559    |                   ~~~~~~
560
561 warning: 42 warnings emitted
562