summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/unused_format_specs_unfixable.stderr
blob: 9f1890282e6ac91f4e140e413de3e9ced145958f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
error: format specifiers have no effect on `format_args!()`
  --> $DIR/unused_format_specs_unfixable.rs:12:15
   |
LL |     println!("{:5}.", format_args!(""));
   |               ^^^^
   |
   = note: `-D clippy::unused-format-specs` implied by `-D warnings`
help: for the width to apply consider using `format!()`
   |
LL |     println!("{:5}.", format!(""));
   |                       ~~~~~~
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     println!("{:5}.", format_args!(""));
LL +     println!("{}.", format_args!(""));
   |

error: format specifiers have no effect on `format_args!()`
  --> $DIR/unused_format_specs_unfixable.rs:14:15
   |
LL |     println!("{:.3}", format_args!("abcde"));
   |               ^^^^^
   |
help: for the precision to apply consider using `format!()`
   |
LL |     println!("{:.3}", format!("abcde"));
   |                       ~~~~~~
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     println!("{:.3}", format_args!("abcde"));
LL +     println!("{}", format_args!("abcde"));
   |

error: format specifiers have no effect on `format_args!()`
  --> $DIR/unused_format_specs_unfixable.rs:16:15
   |
LL |     println!("{:5}.", format_args_from_macro!());
   |               ^^^^
   |
help: for the width to apply consider using `format!()`
  --> $DIR/unused_format_specs_unfixable.rs:16:17
   |
LL |     println!("{:5}.", format_args_from_macro!());
   |                 ^
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     println!("{:5}.", format_args_from_macro!());
LL +     println!("{}.", format_args_from_macro!());
   |

error: format specifiers have no effect on `format_args!()`
  --> $DIR/unused_format_specs_unfixable.rs:19:15
   |
LL |     println!("{args:5}");
   |               ^^^^^^^^
   |
help: for the width to apply consider using `format!()`
  --> $DIR/unused_format_specs_unfixable.rs:19:21
   |
LL |     println!("{args:5}");
   |                     ^
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     println!("{args:5}");
LL +     println!("{args}");
   |

error: aborting due to 4 previous errors