11error: `to_string` applied to a type that implements `Display` in `format!` args
2- --> $DIR/format_args.rs:76 :72
2+ --> $DIR/format_args.rs:77 :72
33 |
44LL | let _ = format!("error: something failed at {}", Location::caller().to_string());
55 | ^^^^^^^^^^^^ help: remove this
@@ -8,145 +8,145 @@ LL | let _ = format!("error: something failed at {}", Location::caller().to_
88 = help: to override `-D warnings` add `#[allow(clippy::to_string_in_format_args)]`
99
1010error: `to_string` applied to a type that implements `Display` in `write!` args
11- --> $DIR/format_args.rs:80 :27
11+ --> $DIR/format_args.rs:81 :27
1212 |
1313LL | Location::caller().to_string()
1414 | ^^^^^^^^^^^^ help: remove this
1515
1616error: `to_string` applied to a type that implements `Display` in `writeln!` args
17- --> $DIR/format_args.rs:85 :27
17+ --> $DIR/format_args.rs:86 :27
1818 |
1919LL | Location::caller().to_string()
2020 | ^^^^^^^^^^^^ help: remove this
2121
2222error: `to_string` applied to a type that implements `Display` in `print!` args
23- --> $DIR/format_args.rs:87 :63
23+ --> $DIR/format_args.rs:88 :63
2424 |
2525LL | print!("error: something failed at {}", Location::caller().to_string());
2626 | ^^^^^^^^^^^^ help: remove this
2727
2828error: `to_string` applied to a type that implements `Display` in `println!` args
29- --> $DIR/format_args.rs:88 :65
29+ --> $DIR/format_args.rs:89 :65
3030 |
3131LL | println!("error: something failed at {}", Location::caller().to_string());
3232 | ^^^^^^^^^^^^ help: remove this
3333
3434error: `to_string` applied to a type that implements `Display` in `eprint!` args
35- --> $DIR/format_args.rs:89 :64
35+ --> $DIR/format_args.rs:90 :64
3636 |
3737LL | eprint!("error: something failed at {}", Location::caller().to_string());
3838 | ^^^^^^^^^^^^ help: remove this
3939
4040error: `to_string` applied to a type that implements `Display` in `eprintln!` args
41- --> $DIR/format_args.rs:90 :66
41+ --> $DIR/format_args.rs:91 :66
4242 |
4343LL | eprintln!("error: something failed at {}", Location::caller().to_string());
4444 | ^^^^^^^^^^^^ help: remove this
4545
4646error: `to_string` applied to a type that implements `Display` in `format_args!` args
47- --> $DIR/format_args.rs:91 :77
47+ --> $DIR/format_args.rs:92 :77
4848 |
4949LL | let _ = format_args!("error: something failed at {}", Location::caller().to_string());
5050 | ^^^^^^^^^^^^ help: remove this
5151
5252error: `to_string` applied to a type that implements `Display` in `assert!` args
53- --> $DIR/format_args.rs:92 :70
53+ --> $DIR/format_args.rs:93 :70
5454 |
5555LL | assert!(true, "error: something failed at {}", Location::caller().to_string());
5656 | ^^^^^^^^^^^^ help: remove this
5757
5858error: `to_string` applied to a type that implements `Display` in `assert_eq!` args
59- --> $DIR/format_args.rs:93 :73
59+ --> $DIR/format_args.rs:94 :73
6060 |
6161LL | assert_eq!(0, 0, "error: something failed at {}", Location::caller().to_string());
6262 | ^^^^^^^^^^^^ help: remove this
6363
6464error: `to_string` applied to a type that implements `Display` in `assert_ne!` args
65- --> $DIR/format_args.rs:94 :73
65+ --> $DIR/format_args.rs:95 :73
6666 |
6767LL | assert_ne!(0, 0, "error: something failed at {}", Location::caller().to_string());
6868 | ^^^^^^^^^^^^ help: remove this
6969
7070error: `to_string` applied to a type that implements `Display` in `panic!` args
71- --> $DIR/format_args.rs:95 :63
71+ --> $DIR/format_args.rs:96 :63
7272 |
7373LL | panic!("error: something failed at {}", Location::caller().to_string());
7474 | ^^^^^^^^^^^^ help: remove this
7575
7676error: `to_string` applied to a type that implements `Display` in `println!` args
77- --> $DIR/format_args.rs:96 :20
77+ --> $DIR/format_args.rs:97 :20
7878 |
7979LL | println!("{}", X(1).to_string());
8080 | ^^^^^^^^^^^^^^^^ help: use this: `*X(1)`
8181
8282error: `to_string` applied to a type that implements `Display` in `println!` args
83- --> $DIR/format_args.rs:97 :20
83+ --> $DIR/format_args.rs:98 :20
8484 |
8585LL | println!("{}", Y(&X(1)).to_string());
8686 | ^^^^^^^^^^^^^^^^^^^^ help: use this: `***Y(&X(1))`
8787
8888error: `to_string` applied to a type that implements `Display` in `println!` args
89- --> $DIR/format_args.rs:98 :24
89+ --> $DIR/format_args.rs:99 :24
9090 |
9191LL | println!("{}", Z(1).to_string());
9292 | ^^^^^^^^^^^^ help: remove this
9393
9494error: `to_string` applied to a type that implements `Display` in `println!` args
95- --> $DIR/format_args.rs:99 :20
95+ --> $DIR/format_args.rs:100 :20
9696 |
9797LL | println!("{}", x.to_string());
9898 | ^^^^^^^^^^^^^ help: use this: `**x`
9999
100100error: `to_string` applied to a type that implements `Display` in `println!` args
101- --> $DIR/format_args.rs:100 :20
101+ --> $DIR/format_args.rs:101 :20
102102 |
103103LL | println!("{}", x_ref.to_string());
104104 | ^^^^^^^^^^^^^^^^^ help: use this: `***x_ref`
105105
106106error: `to_string` applied to a type that implements `Display` in `println!` args
107- --> $DIR/format_args.rs:102 :39
107+ --> $DIR/format_args.rs:103 :39
108108 |
109109LL | println!("{foo}{bar}", foo = "foo".to_string(), bar = "bar");
110110 | ^^^^^^^^^^^^ help: remove this
111111
112112error: `to_string` applied to a type that implements `Display` in `println!` args
113- --> $DIR/format_args.rs:103 :52
113+ --> $DIR/format_args.rs:104 :52
114114 |
115115LL | println!("{foo}{bar}", foo = "foo", bar = "bar".to_string());
116116 | ^^^^^^^^^^^^ help: remove this
117117
118118error: `to_string` applied to a type that implements `Display` in `println!` args
119- --> $DIR/format_args.rs:104 :39
119+ --> $DIR/format_args.rs:105 :39
120120 |
121121LL | println!("{foo}{bar}", bar = "bar".to_string(), foo = "foo");
122122 | ^^^^^^^^^^^^ help: remove this
123123
124124error: `to_string` applied to a type that implements `Display` in `println!` args
125- --> $DIR/format_args.rs:105 :52
125+ --> $DIR/format_args.rs:106 :52
126126 |
127127LL | println!("{foo}{bar}", bar = "bar", foo = "foo".to_string());
128128 | ^^^^^^^^^^^^ help: remove this
129129
130130error: `to_string` applied to a type that implements `Display` in `print!` args
131- --> $DIR/format_args.rs:117 :37
131+ --> $DIR/format_args.rs:118 :37
132132 |
133133LL | print!("{}", (Location::caller().to_string()));
134134 | ^^^^^^^^^^^^ help: remove this
135135
136136error: `to_string` applied to a type that implements `Display` in `print!` args
137- --> $DIR/format_args.rs:118 :39
137+ --> $DIR/format_args.rs:119 :39
138138 |
139139LL | print!("{}", ((Location::caller()).to_string()));
140140 | ^^^^^^^^^^^^ help: remove this
141141
142142error: `to_string` applied to a type that implements `Display` in `format!` args
143- --> $DIR/format_args.rs:146 :38
143+ --> $DIR/format_args.rs:147 :38
144144 |
145145LL | let x = format!("{} {}", a, b.to_string());
146146 | ^^^^^^^^^^^^ help: remove this
147147
148148error: `to_string` applied to a type that implements `Display` in `println!` args
149- --> $DIR/format_args.rs:160 :24
149+ --> $DIR/format_args.rs:161 :24
150150 |
151151LL | println!("{}", original[..10].to_string());
152152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use this: `&original[..10]`
0 commit comments