11warning: panic message contains a brace
2- --> $DIR/non-fmt-panic.rs:13 :29
2+ --> $DIR/non-fmt-panic.rs:19 :29
33 |
44LL | panic!("here's a brace: {");
55 | ^
@@ -12,7 +12,7 @@ LL | panic!("{}", "here's a brace: {");
1212 | +++++
1313
1414warning: panic message contains a brace
15- --> $DIR/non-fmt-panic.rs:14 :35
15+ --> $DIR/non-fmt-panic.rs:20 :35
1616 |
1717LL | unreachable!("here's a brace: {");
1818 | ^
@@ -24,7 +24,7 @@ LL | unreachable!("{}", "here's a brace: {");
2424 | +++++
2525
2626warning: panic message contains a brace
27- --> $DIR/non-fmt-panic.rs:15 :31
27+ --> $DIR/non-fmt-panic.rs:21 :31
2828 |
2929LL | std::panic!("another one: }");
3030 | ^
@@ -36,7 +36,7 @@ LL | std::panic!("{}", "another one: }");
3636 | +++++
3737
3838warning: panic message contains an unused formatting placeholder
39- --> $DIR/non-fmt-panic.rs:16 :25
39+ --> $DIR/non-fmt-panic.rs:22 :25
4040 |
4141LL | core::panic!("Hello {}");
4242 | ^^
@@ -52,7 +52,7 @@ LL | core::panic!("{}", "Hello {}");
5252 | +++++
5353
5454warning: panic message contains unused formatting placeholders
55- --> $DIR/non-fmt-panic.rs:17 :21
55+ --> $DIR/non-fmt-panic.rs:23 :21
5656 |
5757LL | assert!(false, "{:03x} {test} bla");
5858 | ^^^^^^ ^^^^^^
@@ -68,7 +68,7 @@ LL | assert!(false, "{}", "{:03x} {test} bla");
6868 | +++++
6969
7070warning: panic message is not a string literal
71- --> $DIR/non-fmt-panic.rs:19 :20
71+ --> $DIR/non-fmt-panic.rs:25 :20
7272 |
7373LL | assert!(false, S);
7474 | ^
@@ -81,7 +81,7 @@ LL | assert!(false, "{}", S);
8181 | +++++
8282
8383warning: panic message is not a string literal
84- --> $DIR/non-fmt-panic.rs:21 :20
84+ --> $DIR/non-fmt-panic.rs:27 :20
8585 |
8686LL | assert!(false, 123);
8787 | ^^^
@@ -94,7 +94,7 @@ LL | assert!(false, "{}", 123);
9494 | +++++
9595
9696warning: panic message is not a string literal
97- --> $DIR/non-fmt-panic.rs:23 :20
97+ --> $DIR/non-fmt-panic.rs:29 :20
9898 |
9999LL | assert!(false, Some(123));
100100 | ^^^^^^^^^
@@ -107,7 +107,7 @@ LL | assert!(false, "{:?}", Some(123));
107107 | +++++++
108108
109109warning: panic message contains braces
110- --> $DIR/non-fmt-panic.rs:25 :27
110+ --> $DIR/non-fmt-panic.rs:31 :27
111111 |
112112LL | debug_assert!(false, "{{}} bla");
113113 | ^^^^
@@ -119,7 +119,7 @@ LL | debug_assert!(false, "{}", "{{}} bla");
119119 | +++++
120120
121121warning: panic message is not a string literal
122- --> $DIR/non-fmt-panic.rs:26 :12
122+ --> $DIR/non-fmt-panic.rs:32 :12
123123 |
124124LL | panic!(C);
125125 | ^
@@ -132,7 +132,7 @@ LL | panic!("{}", C);
132132 | +++++
133133
134134warning: panic message is not a string literal
135- --> $DIR/non-fmt-panic.rs:27 :12
135+ --> $DIR/non-fmt-panic.rs:33 :12
136136 |
137137LL | panic!(S);
138138 | ^
@@ -145,7 +145,7 @@ LL | panic!("{}", S);
145145 | +++++
146146
147147warning: panic message is not a string literal
148- --> $DIR/non-fmt-panic.rs:28 :18
148+ --> $DIR/non-fmt-panic.rs:34 :18
149149 |
150150LL | unreachable!(S);
151151 | ^
@@ -158,7 +158,7 @@ LL | unreachable!("{}", S);
158158 | +++++
159159
160160warning: panic message is not a string literal
161- --> $DIR/non-fmt-panic.rs:29 :18
161+ --> $DIR/non-fmt-panic.rs:35 :18
162162 |
163163LL | unreachable!(S);
164164 | ^
@@ -171,7 +171,7 @@ LL | unreachable!("{}", S);
171171 | +++++
172172
173173warning: panic message is not a string literal
174- --> $DIR/non-fmt-panic.rs:30 :17
174+ --> $DIR/non-fmt-panic.rs:36 :17
175175 |
176176LL | std::panic!(123);
177177 | ^^^
@@ -189,7 +189,7 @@ LL + std::panic::panic_any(123);
189189 |
190190
191191warning: panic message is not a string literal
192- --> $DIR/non-fmt-panic.rs:31 :18
192+ --> $DIR/non-fmt-panic.rs:37 :18
193193 |
194194LL | core::panic!(&*"abc");
195195 | ^^^^^^^
@@ -202,7 +202,7 @@ LL | core::panic!("{}", &*"abc");
202202 | +++++
203203
204204warning: panic message is not a string literal
205- --> $DIR/non-fmt-panic.rs:32 :12
205+ --> $DIR/non-fmt-panic.rs:38 :12
206206 |
207207LL | panic!(Some(123));
208208 | ^^^^^^^^^
@@ -220,7 +220,7 @@ LL + std::panic::panic_any(Some(123));
220220 |
221221
222222warning: panic message contains an unused formatting placeholder
223- --> $DIR/non-fmt-panic.rs:33 :12
223+ --> $DIR/non-fmt-panic.rs:39 :12
224224 |
225225LL | panic!(concat!("{", "}"));
226226 | ^^^^^^^^^^^^^^^^^
@@ -236,7 +236,7 @@ LL | panic!("{}", concat!("{", "}"));
236236 | +++++
237237
238238warning: panic message contains braces
239- --> $DIR/non-fmt-panic.rs:34 :5
239+ --> $DIR/non-fmt-panic.rs:40 :5
240240 |
241241LL | panic!(concat!("{", "{"));
242242 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -248,15 +248,15 @@ LL | panic!("{}", concat!("{", "{"));
248248 | +++++
249249
250250warning: panic message contains an unused formatting placeholder
251- --> $DIR/non-fmt-panic.rs:36 :37
251+ --> $DIR/non-fmt-panic.rs:42 :37
252252 |
253253LL | fancy_panic::fancy_panic!("test {} 123");
254254 | ^^
255255 |
256256 = note: this message is not used as a format string when given without arguments, but will be in Rust 2021
257257
258258warning: panic message is not a string literal
259- --> $DIR/non-fmt-panic.rs:46 :12
259+ --> $DIR/non-fmt-panic.rs:52 :12
260260 |
261261LL | panic!(a!());
262262 | ^^^^
@@ -274,7 +274,7 @@ LL + std::panic::panic_any(a!());
274274 |
275275
276276warning: panic message is not a string literal
277- --> $DIR/non-fmt-panic.rs:47 :18
277+ --> $DIR/non-fmt-panic.rs:53 :18
278278 |
279279LL | unreachable!(a!());
280280 | ^^^^
@@ -287,7 +287,7 @@ LL | unreachable!("{}", a!());
287287 | +++++
288288
289289warning: panic message is not a string literal
290- --> $DIR/non-fmt-panic.rs:49 :12
290+ --> $DIR/non-fmt-panic.rs:55 :12
291291 |
292292LL | panic!(format!("{}", 1));
293293 | ^^^^^^^^^^^^^^^^
@@ -302,7 +302,7 @@ LL + panic!("{}", 1);
302302 |
303303
304304warning: panic message is not a string literal
305- --> $DIR/non-fmt-panic.rs:50 :18
305+ --> $DIR/non-fmt-panic.rs:56 :18
306306 |
307307LL | unreachable!(format!("{}", 1));
308308 | ^^^^^^^^^^^^^^^^
@@ -317,7 +317,7 @@ LL + unreachable!("{}", 1);
317317 |
318318
319319warning: panic message is not a string literal
320- --> $DIR/non-fmt-panic.rs:51 :20
320+ --> $DIR/non-fmt-panic.rs:57 :20
321321 |
322322LL | assert!(false, format!("{}", 1));
323323 | ^^^^^^^^^^^^^^^^
@@ -332,7 +332,7 @@ LL + assert!(false, "{}", 1);
332332 |
333333
334334warning: panic message is not a string literal
335- --> $DIR/non-fmt-panic.rs:52 :26
335+ --> $DIR/non-fmt-panic.rs:58 :26
336336 |
337337LL | debug_assert!(false, format!("{}", 1));
338338 | ^^^^^^^^^^^^^^^^
@@ -347,7 +347,7 @@ LL + debug_assert!(false, "{}", 1);
347347 |
348348
349349warning: panic message is not a string literal
350- --> $DIR/non-fmt-panic.rs:54 :12
350+ --> $DIR/non-fmt-panic.rs:60 :12
351351 |
352352LL | panic![123];
353353 | ^^^
@@ -365,7 +365,7 @@ LL + std::panic::panic_any(123);
365365 |
366366
367367warning: panic message is not a string literal
368- --> $DIR/non-fmt-panic.rs:55 :12
368+ --> $DIR/non-fmt-panic.rs:61 :12
369369 |
370370LL | panic!{123};
371371 | ^^^
@@ -383,7 +383,7 @@ LL + std::panic::panic_any(123);
383383 |
384384
385385warning: panic message is not a string literal
386- --> $DIR/non-fmt-panic.rs:72 :12
386+ --> $DIR/non-fmt-panic.rs:78 :12
387387 |
388388LL | panic!(v);
389389 | ------ ^
@@ -394,7 +394,7 @@ LL | panic!(v);
394394 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
395395
396396warning: panic message is not a string literal
397- --> $DIR/non-fmt-panic.rs:73 :20
397+ --> $DIR/non-fmt-panic.rs:79 :20
398398 |
399399LL | assert!(false, v);
400400 | ^
@@ -403,7 +403,7 @@ LL | assert!(false, v);
403403 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
404404
405405warning: panic message is not a string literal
406- --> $DIR/non-fmt-panic.rs:77 :12
406+ --> $DIR/non-fmt-panic.rs:83 :12
407407 |
408408LL | panic!(v);
409409 | ^
@@ -421,7 +421,7 @@ LL + std::panic::panic_any(v);
421421 |
422422
423423warning: panic message is not a string literal
424- --> $DIR/non-fmt-panic.rs:78 :20
424+ --> $DIR/non-fmt-panic.rs:84 :20
425425 |
426426LL | assert!(false, v);
427427 | ^
@@ -434,7 +434,7 @@ LL | assert!(false, "{:?}", v);
434434 | +++++++
435435
436436warning: panic message is not a string literal
437- --> $DIR/non-fmt-panic.rs:82 :12
437+ --> $DIR/non-fmt-panic.rs:88 :12
438438 |
439439LL | panic!(v);
440440 | ^
@@ -452,7 +452,7 @@ LL + std::panic::panic_any(v);
452452 |
453453
454454warning: panic message is not a string literal
455- --> $DIR/non-fmt-panic.rs:83 :20
455+ --> $DIR/non-fmt-panic.rs:89 :20
456456 |
457457LL | assert!(false, v);
458458 | ^
@@ -465,7 +465,7 @@ LL | assert!(false, "{}", v);
465465 | +++++
466466
467467warning: panic message is not a string literal
468- --> $DIR/non-fmt-panic.rs:87 :12
468+ --> $DIR/non-fmt-panic.rs:93 :12
469469 |
470470LL | panic!(v);
471471 | ^
@@ -483,7 +483,7 @@ LL + std::panic::panic_any(v);
483483 |
484484
485485warning: panic message is not a string literal
486- --> $DIR/non-fmt-panic.rs:88 :20
486+ --> $DIR/non-fmt-panic.rs:94 :20
487487 |
488488LL | assert!(false, v);
489489 | ^
0 commit comments