1
1
warning: panic message contains a brace
2
- --> $DIR/panic-brace.rs:8 :29
2
+ --> $DIR/panic-brace.rs:11 :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/panic-brace.rs:9 :31
15
+ --> $DIR/panic-brace.rs:12 :31
16
16
|
17
17
LL | std::panic!("another one: }");
18
18
| ^
@@ -24,7 +24,7 @@ LL | std::panic!("{}", "another one: }");
24
24
| ^^^^^
25
25
26
26
warning: panic message contains an unused formatting placeholder
27
- --> $DIR/panic-brace.rs:10 :25
27
+ --> $DIR/panic-brace.rs:13 :25
28
28
|
29
29
LL | core::panic!("Hello {}");
30
30
| ^^
@@ -40,7 +40,7 @@ LL | core::panic!("{}", "Hello {}");
40
40
| ^^^^^
41
41
42
42
warning: panic message contains unused formatting placeholders
43
- --> $DIR/panic-brace.rs:11 :21
43
+ --> $DIR/panic-brace.rs:14 :21
44
44
|
45
45
LL | assert!(false, "{:03x} {test} bla");
46
46
| ^^^^^^ ^^^^^^
@@ -56,7 +56,7 @@ LL | assert!(false, "{}", "{:03x} {test} bla");
56
56
| ^^^^^
57
57
58
58
warning: panic message contains braces
59
- --> $DIR/panic-brace.rs:13 :27
59
+ --> $DIR/panic-brace.rs:16 :27
60
60
|
61
61
LL | debug_assert!(false, "{{}} bla");
62
62
| ^^^^
@@ -68,7 +68,7 @@ LL | debug_assert!(false, "{}", "{{}} bla");
68
68
| ^^^^^
69
69
70
70
warning: panic message contains an unused formatting placeholder
71
- --> $DIR/panic-brace.rs:16 :12
71
+ --> $DIR/panic-brace.rs:19 :12
72
72
|
73
73
LL | panic!(concat!("{", "}"));
74
74
| ^^^^^^^^^^^^^^^^^
@@ -84,7 +84,7 @@ LL | panic!("{}", concat!("{", "}"));
84
84
| ^^^^^
85
85
86
86
warning: panic message contains braces
87
- --> $DIR/panic-brace.rs:17 :5
87
+ --> $DIR/panic-brace.rs:20 :5
88
88
|
89
89
LL | panic!(concat!("{", "{"));
90
90
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -95,5 +95,13 @@ help: add a "{}" format string to use the message literally
95
95
LL | panic!("{}", concat!("{", "{"));
96
96
| ^^^^^
97
97
98
- warning: 7 warnings emitted
98
+ warning: panic message contains an unused formatting placeholder
99
+ --> $DIR/panic-brace.rs:22:37
100
+ |
101
+ LL | fancy_panic::fancy_panic!("test {} 123");
102
+ | ^^
103
+ |
104
+ = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition
105
+
106
+ warning: 8 warnings emitted
99
107
0 commit comments