@@ -5,7 +5,7 @@ LL | panic!("here's a brace: {");
5
5
| ^
6
6
|
7
7
= 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
9
9
help: add a "{}" format string to use the message literally
10
10
|
11
11
LL | panic!("{}", "here's a brace: {");
@@ -17,7 +17,7 @@ warning: panic message contains a brace
17
17
LL | std::panic!("another one: }");
18
18
| ^
19
19
|
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
21
21
help: add a "{}" format string to use the message literally
22
22
|
23
23
LL | std::panic!("{}", "another one: }");
@@ -29,8 +29,8 @@ warning: panic message contains an unused formatting placeholder
29
29
LL | core::panic!("Hello {}");
30
30
| ^^
31
31
|
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
34
34
|
35
35
LL | core::panic!("Hello {}", ...);
36
36
| ^^^^^
@@ -45,8 +45,8 @@ warning: panic message contains unused formatting placeholders
45
45
LL | assert!(false, "{:03x} {test} bla");
46
46
| ^^^^^^ ^^^^^^
47
47
|
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
50
50
|
51
51
LL | assert!(false, "{:03x} {test} bla", ...);
52
52
| ^^^^^
@@ -61,7 +61,7 @@ warning: panic message contains braces
61
61
LL | debug_assert!(false, "{{}} bla");
62
62
| ^^^^
63
63
|
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
65
65
help: add a "{}" format string to use the message literally
66
66
|
67
67
LL | debug_assert!(false, "{}", "{{}} bla");
@@ -73,8 +73,8 @@ warning: panic message contains an unused formatting placeholder
73
73
LL | panic!(concat!("{", "}"));
74
74
| ^^^^^^^^^^^^^^^^^
75
75
|
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
78
78
|
79
79
LL | panic!(concat!("{", "}"), ...);
80
80
| ^^^^^
@@ -89,7 +89,7 @@ warning: panic message contains braces
89
89
LL | panic!(concat!("{", "{"));
90
90
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
91
91
|
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
93
93
help: add a "{}" format string to use the message literally
94
94
|
95
95
LL | panic!("{}", concat!("{", "{"));
0 commit comments