1
- warning: Panic message contains a brace
1
+ warning: panic message contains a brace
2
2
--> $DIR/panic-brace.rs:5:5
3
3
|
4
4
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 version
9
9
help: add a "{}" format string to use the message literally
10
10
|
11
11
LL | panic!("{}", "here's a brace: {");
12
12
| ^^^^^
13
13
14
- warning: Panic message contains a brace
14
+ warning: panic message contains a brace
15
15
--> $DIR/panic-brace.rs:6:5
16
16
|
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 version
21
21
help: add a "{}" format string to use the message literally
22
22
|
23
23
LL | std::panic!("{}", "another one: }");
24
24
| ^^^^^
25
25
26
- warning: Panic message contains an unused formatting placeholder
26
+ warning: panic message contains an unused formatting placeholder
27
27
--> $DIR/panic-brace.rs:7:18
28
28
|
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
32
+ = note: this message is not used as a format string when given without arguments, but will be in a future Rust version
33
33
help: add the missing argument(s)
34
34
|
35
35
LL | core::panic!("Hello {}", argument);
@@ -39,13 +39,13 @@ help: or add a "{}" format string to use the message literally
39
39
LL | core::panic!("{}", "Hello {}");
40
40
| ^^^^^
41
41
42
- warning: Panic message contains an unused formatting placeholder
42
+ warning: panic message contains an unused formatting placeholder
43
43
--> $DIR/panic-brace.rs:8:20
44
44
|
45
45
LL | assert!(false, "{:03x} 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
48
+ = note: this message is not used as a format string when given without arguments, but will be in a future Rust version
49
49
help: add the missing argument(s)
50
50
|
51
51
LL | assert!(false, "{:03x} bla", argument);
@@ -55,13 +55,13 @@ help: or add a "{}" format string to use the message literally
55
55
LL | assert!(false, "{}", "{:03x} bla");
56
56
| ^^^^^
57
57
58
- warning: Panic message contains a brace
58
+ warning: panic message contains a brace
59
59
--> $DIR/panic-brace.rs:9:5
60
60
|
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 version
65
65
help: add a "{}" format string to use the message literally
66
66
|
67
67
LL | debug_assert!(false, "{}", "{{}} bla");
0 commit comments