1- warning: Panic message contains a brace
1+ warning: panic message contains a brace
22 --> $DIR/panic-brace.rs:5:5
33 |
44LL | panic!("here's a brace: {");
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
77 = note: `#[warn(panic_fmt)]` on by default
8- = note: This message is not used as a format string, but will be in a future Rust version
8+ = note: this message is not used as a format string, but will be in a future Rust version
99help: add a "{}" format string to use the message literally
1010 |
1111LL | panic!("{}", "here's a brace: {");
1212 | ^^^^^
1313
14- warning: Panic message contains a brace
14+ warning: panic message contains a brace
1515 --> $DIR/panic-brace.rs:6:5
1616 |
1717LL | std::panic!("another one: }");
1818 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1919 |
20- = note: This message is not used as a format string, but will be in a future Rust version
20+ = note: this message is not used as a format string, but will be in a future Rust version
2121help: add a "{}" format string to use the message literally
2222 |
2323LL | std::panic!("{}", "another one: }");
2424 | ^^^^^
2525
26- warning: Panic message contains an unused formatting placeholder
26+ warning: panic message contains an unused formatting placeholder
2727 --> $DIR/panic-brace.rs:7:18
2828 |
2929LL | core::panic!("Hello {}");
3030 | ^^^^^^^^^^
3131 |
32- = note: This message is not used as a format string when given without arguments, but will be in a future Rust version
32+ = note: this message is not used as a format string when given without arguments, but will be in a future Rust version
3333help: add the missing argument(s)
3434 |
3535LL | core::panic!("Hello {}", argument);
@@ -39,13 +39,13 @@ help: or add a "{}" format string to use the message literally
3939LL | core::panic!("{}", "Hello {}");
4040 | ^^^^^
4141
42- warning: Panic message contains an unused formatting placeholder
42+ warning: panic message contains an unused formatting placeholder
4343 --> $DIR/panic-brace.rs:8:20
4444 |
4545LL | assert!(false, "{:03x} bla");
4646 | ^^^^^^^^^^^^
4747 |
48- = note: This message is not used as a format string when given without arguments, but will be in a future Rust version
48+ = note: this message is not used as a format string when given without arguments, but will be in a future Rust version
4949help: add the missing argument(s)
5050 |
5151LL | assert!(false, "{:03x} bla", argument);
@@ -55,13 +55,13 @@ help: or add a "{}" format string to use the message literally
5555LL | assert!(false, "{}", "{:03x} bla");
5656 | ^^^^^
5757
58- warning: Panic message contains a brace
58+ warning: panic message contains a brace
5959 --> $DIR/panic-brace.rs:9:5
6060 |
6161LL | debug_assert!(false, "{{}} bla");
6262 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6363 |
64- = note: This message is not used as a format string, but will be in a future Rust version
64+ = note: this message is not used as a format string, but will be in a future Rust version
6565help: add a "{}" format string to use the message literally
6666 |
6767LL | debug_assert!(false, "{}", "{{}} bla");
0 commit comments