@@ -61,7 +61,8 @@ warning: panic message is not a string literal
61
61
LL | assert!(false, S);
62
62
| ^
63
63
|
64
- = note: this is no longer accepted in Rust 2021
64
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
65
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
65
66
help: add a "{}" format string to Display the message
66
67
|
67
68
LL | assert!(false, "{}", S);
@@ -85,7 +86,8 @@ warning: panic message is not a string literal
85
86
LL | panic!(C);
86
87
| ^
87
88
|
88
- = note: this is no longer accepted in Rust 2021
89
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
90
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
89
91
help: add a "{}" format string to Display the message
90
92
|
91
93
LL | panic!("{}", C);
@@ -101,7 +103,8 @@ warning: panic message is not a string literal
101
103
LL | panic!(S);
102
104
| ^
103
105
|
104
- = note: this is no longer accepted in Rust 2021
106
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
107
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
105
108
help: add a "{}" format string to Display the message
106
109
|
107
110
LL | panic!("{}", S);
@@ -117,7 +120,8 @@ warning: panic message is not a string literal
117
120
LL | std::panic!(123);
118
121
| ^^^
119
122
|
120
- = note: this is no longer accepted in Rust 2021
123
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
124
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
121
125
help: add a "{}" format string to Display the message
122
126
|
123
127
LL | std::panic!("{}", 123);
@@ -133,7 +137,8 @@ warning: panic message is not a string literal
133
137
LL | core::panic!(&*"abc");
134
138
| ^^^^^^^
135
139
|
136
- = note: this is no longer accepted in Rust 2021
140
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
141
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
137
142
help: add a "{}" format string to Display the message
138
143
|
139
144
LL | core::panic!("{}", &*"abc");
@@ -181,15 +186,17 @@ warning: panic message is not a string literal
181
186
LL | fancy_panic::fancy_panic!(S);
182
187
| ^
183
188
|
184
- = note: this is no longer accepted in Rust 2021
189
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
190
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
185
191
186
192
warning: panic message is not a string literal
187
193
--> $DIR/non-fmt-panic.rs:36:12
188
194
|
189
195
LL | panic!(a!());
190
196
| ^^^^
191
197
|
192
- = note: this is no longer accepted in Rust 2021
198
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
199
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
193
200
help: add a "{}" format string to Display the message
194
201
|
195
202
LL | panic!("{}", a!());
@@ -205,7 +212,8 @@ warning: panic message is not a string literal
205
212
LL | panic!(format!("{}", 1));
206
213
| ^^^^^^^^^^^^^^^^
207
214
|
208
- = note: this is no longer accepted in Rust 2021
215
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
216
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
209
217
= note: the panic!() macro supports formatting, so there's no need for the format!() macro here
210
218
help: remove the `format!(..)` macro call
211
219
|
@@ -218,7 +226,8 @@ warning: panic message is not a string literal
218
226
LL | assert!(false, format!("{}", 1));
219
227
| ^^^^^^^^^^^^^^^^
220
228
|
221
- = note: this is no longer accepted in Rust 2021
229
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
230
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
222
231
= note: the assert!() macro supports formatting, so there's no need for the format!() macro here
223
232
help: remove the `format!(..)` macro call
224
233
|
@@ -231,7 +240,8 @@ warning: panic message is not a string literal
231
240
LL | debug_assert!(false, format!("{}", 1));
232
241
| ^^^^^^^^^^^^^^^^
233
242
|
234
- = note: this is no longer accepted in Rust 2021
243
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
244
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
235
245
= note: the debug_assert!() macro supports formatting, so there's no need for the format!() macro here
236
246
help: remove the `format!(..)` macro call
237
247
|
@@ -244,7 +254,8 @@ warning: panic message is not a string literal
244
254
LL | panic![123];
245
255
| ^^^
246
256
|
247
- = note: this is no longer accepted in Rust 2021
257
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
258
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
248
259
help: add a "{}" format string to Display the message
249
260
|
250
261
LL | panic!["{}", 123];
@@ -260,7 +271,8 @@ warning: panic message is not a string literal
260
271
LL | panic!{123};
261
272
| ^^^
262
273
|
263
- = note: this is no longer accepted in Rust 2021
274
+ = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021
275
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
264
276
help: add a "{}" format string to Display the message
265
277
|
266
278
LL | panic!{"{}", 123};
0 commit comments