11warning: panic message contains a brace
2- --> $DIR/panic-brace.rs:8 :29
2+ --> $DIR/panic-brace.rs:11 :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/panic-brace.rs:9 :31
15+ --> $DIR/panic-brace.rs:12 :31
1616 |
1717LL | std::panic!("another one: }");
1818 | ^
@@ -24,7 +24,7 @@ LL | std::panic!("{}", "another one: }");
2424 | ^^^^^
2525
2626warning: panic message contains an unused formatting placeholder
27- --> $DIR/panic-brace.rs:10 :25
27+ --> $DIR/panic-brace.rs:13 :25
2828 |
2929LL | core::panic!("Hello {}");
3030 | ^^
@@ -40,7 +40,7 @@ LL | core::panic!("{}", "Hello {}");
4040 | ^^^^^
4141
4242warning: panic message contains unused formatting placeholders
43- --> $DIR/panic-brace.rs:11 :21
43+ --> $DIR/panic-brace.rs:14 :21
4444 |
4545LL | assert!(false, "{:03x} {test} bla");
4646 | ^^^^^^ ^^^^^^
@@ -56,7 +56,7 @@ LL | assert!(false, "{}", "{:03x} {test} bla");
5656 | ^^^^^
5757
5858warning: panic message contains braces
59- --> $DIR/panic-brace.rs:13 :27
59+ --> $DIR/panic-brace.rs:16 :27
6060 |
6161LL | debug_assert!(false, "{{}} bla");
6262 | ^^^^
@@ -68,7 +68,7 @@ LL | debug_assert!(false, "{}", "{{}} bla");
6868 | ^^^^^
6969
7070warning: panic message contains an unused formatting placeholder
71- --> $DIR/panic-brace.rs:16 :12
71+ --> $DIR/panic-brace.rs:19 :12
7272 |
7373LL | panic!(concat!("{", "}"));
7474 | ^^^^^^^^^^^^^^^^^
@@ -84,7 +84,7 @@ LL | panic!("{}", concat!("{", "}"));
8484 | ^^^^^
8585
8686warning: panic message contains braces
87- --> $DIR/panic-brace.rs:17 :5
87+ --> $DIR/panic-brace.rs:20 :5
8888 |
8989LL | panic!(concat!("{", "{"));
9090 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -95,5 +95,13 @@ help: add a "{}" format string to use the message literally
9595LL | panic!("{}", concat!("{", "{"));
9696 | ^^^^^
9797
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
99107
0 commit comments