1
1
warning: panic message contains a brace
2
- --> $DIR/non-fmt-panic.rs:13 :29
2
+ --> $DIR/non-fmt-panic.rs:19 :29
3
3
|
4
4
LL | panic!("here's a brace: {");
5
5
| ^
@@ -12,7 +12,7 @@ LL | panic!("{}", "here's a brace: {");
12
12
| +++++
13
13
14
14
warning: panic message contains a brace
15
- --> $DIR/non-fmt-panic.rs:14 :35
15
+ --> $DIR/non-fmt-panic.rs:20 :35
16
16
|
17
17
LL | unreachable!("here's a brace: {");
18
18
| ^
@@ -24,7 +24,7 @@ LL | unreachable!("{}", "here's a brace: {");
24
24
| +++++
25
25
26
26
warning: panic message contains a brace
27
- --> $DIR/non-fmt-panic.rs:15 :31
27
+ --> $DIR/non-fmt-panic.rs:21 :31
28
28
|
29
29
LL | std::panic!("another one: }");
30
30
| ^
@@ -36,7 +36,7 @@ LL | std::panic!("{}", "another one: }");
36
36
| +++++
37
37
38
38
warning: panic message contains an unused formatting placeholder
39
- --> $DIR/non-fmt-panic.rs:16 :25
39
+ --> $DIR/non-fmt-panic.rs:22 :25
40
40
|
41
41
LL | core::panic!("Hello {}");
42
42
| ^^
@@ -52,7 +52,7 @@ LL | core::panic!("{}", "Hello {}");
52
52
| +++++
53
53
54
54
warning: panic message contains unused formatting placeholders
55
- --> $DIR/non-fmt-panic.rs:17 :21
55
+ --> $DIR/non-fmt-panic.rs:23 :21
56
56
|
57
57
LL | assert!(false, "{:03x} {test} bla");
58
58
| ^^^^^^ ^^^^^^
@@ -68,7 +68,7 @@ LL | assert!(false, "{}", "{:03x} {test} bla");
68
68
| +++++
69
69
70
70
warning: panic message is not a string literal
71
- --> $DIR/non-fmt-panic.rs:19 :20
71
+ --> $DIR/non-fmt-panic.rs:25 :20
72
72
|
73
73
LL | assert!(false, S);
74
74
| ^
@@ -81,7 +81,7 @@ LL | assert!(false, "{}", S);
81
81
| +++++
82
82
83
83
warning: panic message is not a string literal
84
- --> $DIR/non-fmt-panic.rs:21 :20
84
+ --> $DIR/non-fmt-panic.rs:27 :20
85
85
|
86
86
LL | assert!(false, 123);
87
87
| ^^^
@@ -94,7 +94,7 @@ LL | assert!(false, "{}", 123);
94
94
| +++++
95
95
96
96
warning: panic message is not a string literal
97
- --> $DIR/non-fmt-panic.rs:23 :20
97
+ --> $DIR/non-fmt-panic.rs:29 :20
98
98
|
99
99
LL | assert!(false, Some(123));
100
100
| ^^^^^^^^^
@@ -107,7 +107,7 @@ LL | assert!(false, "{:?}", Some(123));
107
107
| +++++++
108
108
109
109
warning: panic message contains braces
110
- --> $DIR/non-fmt-panic.rs:25 :27
110
+ --> $DIR/non-fmt-panic.rs:31 :27
111
111
|
112
112
LL | debug_assert!(false, "{{}} bla");
113
113
| ^^^^
@@ -119,7 +119,7 @@ LL | debug_assert!(false, "{}", "{{}} bla");
119
119
| +++++
120
120
121
121
warning: panic message is not a string literal
122
- --> $DIR/non-fmt-panic.rs:26 :12
122
+ --> $DIR/non-fmt-panic.rs:32 :12
123
123
|
124
124
LL | panic!(C);
125
125
| ^
@@ -132,7 +132,7 @@ LL | panic!("{}", C);
132
132
| +++++
133
133
134
134
warning: panic message is not a string literal
135
- --> $DIR/non-fmt-panic.rs:27 :12
135
+ --> $DIR/non-fmt-panic.rs:33 :12
136
136
|
137
137
LL | panic!(S);
138
138
| ^
@@ -145,7 +145,7 @@ LL | panic!("{}", S);
145
145
| +++++
146
146
147
147
warning: panic message is not a string literal
148
- --> $DIR/non-fmt-panic.rs:28 :18
148
+ --> $DIR/non-fmt-panic.rs:34 :18
149
149
|
150
150
LL | unreachable!(S);
151
151
| ^
@@ -158,7 +158,7 @@ LL | unreachable!("{}", S);
158
158
| +++++
159
159
160
160
warning: panic message is not a string literal
161
- --> $DIR/non-fmt-panic.rs:29 :18
161
+ --> $DIR/non-fmt-panic.rs:35 :18
162
162
|
163
163
LL | unreachable!(S);
164
164
| ^
@@ -171,7 +171,7 @@ LL | unreachable!("{}", S);
171
171
| +++++
172
172
173
173
warning: panic message is not a string literal
174
- --> $DIR/non-fmt-panic.rs:30 :17
174
+ --> $DIR/non-fmt-panic.rs:36 :17
175
175
|
176
176
LL | std::panic!(123);
177
177
| ^^^
@@ -189,7 +189,7 @@ LL + std::panic::panic_any(123);
189
189
|
190
190
191
191
warning: panic message is not a string literal
192
- --> $DIR/non-fmt-panic.rs:31 :18
192
+ --> $DIR/non-fmt-panic.rs:37 :18
193
193
|
194
194
LL | core::panic!(&*"abc");
195
195
| ^^^^^^^
@@ -202,7 +202,7 @@ LL | core::panic!("{}", &*"abc");
202
202
| +++++
203
203
204
204
warning: panic message is not a string literal
205
- --> $DIR/non-fmt-panic.rs:32 :12
205
+ --> $DIR/non-fmt-panic.rs:38 :12
206
206
|
207
207
LL | panic!(Some(123));
208
208
| ^^^^^^^^^
@@ -220,7 +220,7 @@ LL + std::panic::panic_any(Some(123));
220
220
|
221
221
222
222
warning: panic message contains an unused formatting placeholder
223
- --> $DIR/non-fmt-panic.rs:33 :12
223
+ --> $DIR/non-fmt-panic.rs:39 :12
224
224
|
225
225
LL | panic!(concat!("{", "}"));
226
226
| ^^^^^^^^^^^^^^^^^
@@ -236,7 +236,7 @@ LL | panic!("{}", concat!("{", "}"));
236
236
| +++++
237
237
238
238
warning: panic message contains braces
239
- --> $DIR/non-fmt-panic.rs:34 :5
239
+ --> $DIR/non-fmt-panic.rs:40 :5
240
240
|
241
241
LL | panic!(concat!("{", "{"));
242
242
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -248,15 +248,15 @@ LL | panic!("{}", concat!("{", "{"));
248
248
| +++++
249
249
250
250
warning: panic message contains an unused formatting placeholder
251
- --> $DIR/non-fmt-panic.rs:36 :37
251
+ --> $DIR/non-fmt-panic.rs:42 :37
252
252
|
253
253
LL | fancy_panic::fancy_panic!("test {} 123");
254
254
| ^^
255
255
|
256
256
= note: this message is not used as a format string when given without arguments, but will be in Rust 2021
257
257
258
258
warning: panic message is not a string literal
259
- --> $DIR/non-fmt-panic.rs:46 :12
259
+ --> $DIR/non-fmt-panic.rs:52 :12
260
260
|
261
261
LL | panic!(a!());
262
262
| ^^^^
@@ -274,7 +274,7 @@ LL + std::panic::panic_any(a!());
274
274
|
275
275
276
276
warning: panic message is not a string literal
277
- --> $DIR/non-fmt-panic.rs:47 :18
277
+ --> $DIR/non-fmt-panic.rs:53 :18
278
278
|
279
279
LL | unreachable!(a!());
280
280
| ^^^^
@@ -287,7 +287,7 @@ LL | unreachable!("{}", a!());
287
287
| +++++
288
288
289
289
warning: panic message is not a string literal
290
- --> $DIR/non-fmt-panic.rs:49 :12
290
+ --> $DIR/non-fmt-panic.rs:55 :12
291
291
|
292
292
LL | panic!(format!("{}", 1));
293
293
| ^^^^^^^^^^^^^^^^
@@ -302,7 +302,7 @@ LL + panic!("{}", 1);
302
302
|
303
303
304
304
warning: panic message is not a string literal
305
- --> $DIR/non-fmt-panic.rs:50 :18
305
+ --> $DIR/non-fmt-panic.rs:56 :18
306
306
|
307
307
LL | unreachable!(format!("{}", 1));
308
308
| ^^^^^^^^^^^^^^^^
@@ -317,7 +317,7 @@ LL + unreachable!("{}", 1);
317
317
|
318
318
319
319
warning: panic message is not a string literal
320
- --> $DIR/non-fmt-panic.rs:51 :20
320
+ --> $DIR/non-fmt-panic.rs:57 :20
321
321
|
322
322
LL | assert!(false, format!("{}", 1));
323
323
| ^^^^^^^^^^^^^^^^
@@ -332,7 +332,7 @@ LL + assert!(false, "{}", 1);
332
332
|
333
333
334
334
warning: panic message is not a string literal
335
- --> $DIR/non-fmt-panic.rs:52 :26
335
+ --> $DIR/non-fmt-panic.rs:58 :26
336
336
|
337
337
LL | debug_assert!(false, format!("{}", 1));
338
338
| ^^^^^^^^^^^^^^^^
@@ -347,7 +347,7 @@ LL + debug_assert!(false, "{}", 1);
347
347
|
348
348
349
349
warning: panic message is not a string literal
350
- --> $DIR/non-fmt-panic.rs:54 :12
350
+ --> $DIR/non-fmt-panic.rs:60 :12
351
351
|
352
352
LL | panic![123];
353
353
| ^^^
@@ -365,7 +365,7 @@ LL + std::panic::panic_any(123);
365
365
|
366
366
367
367
warning: panic message is not a string literal
368
- --> $DIR/non-fmt-panic.rs:55 :12
368
+ --> $DIR/non-fmt-panic.rs:61 :12
369
369
|
370
370
LL | panic!{123};
371
371
| ^^^
@@ -383,7 +383,7 @@ LL + std::panic::panic_any(123);
383
383
|
384
384
385
385
warning: panic message is not a string literal
386
- --> $DIR/non-fmt-panic.rs:72 :12
386
+ --> $DIR/non-fmt-panic.rs:78 :12
387
387
|
388
388
LL | panic!(v);
389
389
| ------ ^
@@ -394,7 +394,7 @@ LL | panic!(v);
394
394
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
395
395
396
396
warning: panic message is not a string literal
397
- --> $DIR/non-fmt-panic.rs:73 :20
397
+ --> $DIR/non-fmt-panic.rs:79 :20
398
398
|
399
399
LL | assert!(false, v);
400
400
| ^
@@ -403,7 +403,7 @@ LL | assert!(false, v);
403
403
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
404
404
405
405
warning: panic message is not a string literal
406
- --> $DIR/non-fmt-panic.rs:77 :12
406
+ --> $DIR/non-fmt-panic.rs:83 :12
407
407
|
408
408
LL | panic!(v);
409
409
| ^
@@ -421,7 +421,7 @@ LL + std::panic::panic_any(v);
421
421
|
422
422
423
423
warning: panic message is not a string literal
424
- --> $DIR/non-fmt-panic.rs:78 :20
424
+ --> $DIR/non-fmt-panic.rs:84 :20
425
425
|
426
426
LL | assert!(false, v);
427
427
| ^
@@ -434,7 +434,7 @@ LL | assert!(false, "{:?}", v);
434
434
| +++++++
435
435
436
436
warning: panic message is not a string literal
437
- --> $DIR/non-fmt-panic.rs:82 :12
437
+ --> $DIR/non-fmt-panic.rs:88 :12
438
438
|
439
439
LL | panic!(v);
440
440
| ^
@@ -452,7 +452,7 @@ LL + std::panic::panic_any(v);
452
452
|
453
453
454
454
warning: panic message is not a string literal
455
- --> $DIR/non-fmt-panic.rs:83 :20
455
+ --> $DIR/non-fmt-panic.rs:89 :20
456
456
|
457
457
LL | assert!(false, v);
458
458
| ^
@@ -465,7 +465,7 @@ LL | assert!(false, "{}", v);
465
465
| +++++
466
466
467
467
warning: panic message is not a string literal
468
- --> $DIR/non-fmt-panic.rs:87 :12
468
+ --> $DIR/non-fmt-panic.rs:93 :12
469
469
|
470
470
LL | panic!(v);
471
471
| ^
@@ -483,7 +483,7 @@ LL + std::panic::panic_any(v);
483
483
|
484
484
485
485
warning: panic message is not a string literal
486
- --> $DIR/non-fmt-panic.rs:88 :20
486
+ --> $DIR/non-fmt-panic.rs:94 :20
487
487
|
488
488
LL | assert!(false, v);
489
489
| ^
0 commit comments