@@ -5,7 +5,7 @@ LL | 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 edition
99help: add a "{}" format string to use the message literally
1010 |
1111LL | panic!("{}", "here's a brace: {");
@@ -17,7 +17,7 @@ warning: panic message contains a brace
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 edition
2121help: add a "{}" format string to use the message literally
2222 |
2323LL | std::panic!("{}", "another one: }");
@@ -29,8 +29,8 @@ warning: panic message contains an unused formatting placeholder
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
33- help: add the missing argument(s)
32+ = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition
33+ help: add the missing argument
3434 |
3535LL | core::panic!("Hello {}", ...);
3636 | ^^^^^
@@ -45,8 +45,8 @@ warning: panic message contains unused formatting placeholders
4545LL | assert!(false, "{:03x} {test} 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
49- help: add the missing argument(s)
48+ = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition
49+ help: add the missing arguments
5050 |
5151LL | assert!(false, "{:03x} {test} bla", ...);
5252 | ^^^^^
@@ -61,7 +61,7 @@ warning: panic message contains braces
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 edition
6565help: add a "{}" format string to use the message literally
6666 |
6767LL | debug_assert!(false, "{}", "{{}} bla");
@@ -73,8 +73,8 @@ warning: panic message contains an unused formatting placeholder
7373LL | panic!(concat!("{", "}"));
7474 | ^^^^^^^^^^^^^^^^^
7575 |
76- = note: this message is not used as a format string when given without arguments, but will be in a future Rust version
77- help: add the missing argument(s)
76+ = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition
77+ help: add the missing argument
7878 |
7979LL | panic!(concat!("{", "}"), ...);
8080 | ^^^^^
@@ -89,7 +89,7 @@ warning: panic message contains braces
8989LL | panic!(concat!("{", "{"));
9090 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
9191 |
92- = note: this message is not used as a format string, but will be in a future Rust version
92+ = note: this message is not used as a format string, but will be in a future Rust edition
9393help: add a "{}" format string to use the message literally
9494 |
9595LL | panic!("{}", concat!("{", "{"));
0 commit comments