about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/unused_format_specs.stderr
blob: b07058fd568dae094cf81fbc3aa4f40401f697e5 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
error: format specifiers have no effect on `format_args!()`
  --> tests/ui/unused_format_specs.rs:12:15
   |
LL |     println!("{:5}.", format_args!(""));
   |               ^^^^
   |
   = note: `-D clippy::unused-format-specs` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unused_format_specs)]`
help: for the width to apply consider using `format!()`
   |
LL -     println!("{:5}.", format_args!(""));
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!()`
  --> tests/ui/unused_format_specs.rs:16:15
   |
LL |     println!("{:.3}", format_args!("abcde"));
   |               ^^^^^
   |
help: for the precision to apply consider using `format!()`
   |
LL -     println!("{:.3}", format_args!("abcde"));
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!()`
  --> tests/ui/unused_format_specs.rs:19:15
   |
LL |     println!("{:5}.", format_args_from_macro!());
   |               ^^^^
   |
   = help: for the width to apply consider using `format!()`
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!()`
  --> tests/ui/unused_format_specs.rs:23:15
   |
LL |     println!("{args:5}");
   |               ^^^^^^^^
   |
   = help: for the width to apply consider using `format!()`
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     println!("{args:5}");
LL +     println!("{args}");
   |

error: format specifiers have no effect on `format_args!()`
  --> tests/ui/unused_format_specs.rs:48:25
   |
LL |     usr_println!(true, "{:5}.", format_args!(""));
   |                         ^^^^
   |
help: for the width to apply consider using `format!()`
   |
LL -     usr_println!(true, "{:5}.", format_args!(""));
LL +     usr_println!(true, "{:5}.", format!(""));
   |
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     usr_println!(true, "{:5}.", format_args!(""));
LL +     usr_println!(true, "{}.", format_args!(""));
   |

error: format specifiers have no effect on `format_args!()`
  --> tests/ui/unused_format_specs.rs:52:25
   |
LL |     usr_println!(true, "{:.3}", format_args!("abcde"));
   |                         ^^^^^
   |
help: for the precision to apply consider using `format!()`
   |
LL -     usr_println!(true, "{:.3}", format_args!("abcde"));
LL +     usr_println!(true, "{:.3}", format!("abcde"));
   |
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     usr_println!(true, "{:.3}", format_args!("abcde"));
LL +     usr_println!(true, "{}", format_args!("abcde"));
   |

error: format specifiers have no effect on `format_args!()`
  --> tests/ui/unused_format_specs.rs:55:25
   |
LL |     usr_println!(true, "{:5}.", format_args_from_macro!());
   |                         ^^^^
   |
   = help: for the width to apply consider using `format!()`
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     usr_println!(true, "{:5}.", format_args_from_macro!());
LL +     usr_println!(true, "{}.", format_args_from_macro!());
   |

error: format specifiers have no effect on `format_args!()`
  --> tests/ui/unused_format_specs.rs:59:25
   |
LL |     usr_println!(true, "{args:5}");
   |                         ^^^^^^^^
   |
   = help: for the width to apply consider using `format!()`
help: if the current behavior is intentional, remove the format specifiers
   |
LL -     usr_println!(true, "{args:5}");
LL +     usr_println!(true, "{args}");
   |

error: aborting due to 8 previous errors