@@ -61,7 +61,8 @@ warning: panic message is not a string literal
6161LL | assert!(false, S);
6262 | ^
6363 |
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>
6566help: add a "{}" format string to Display the message
6667 |
6768LL | assert!(false, "{}", S);
@@ -85,7 +86,8 @@ warning: panic message is not a string literal
8586LL | panic!(C);
8687 | ^
8788 |
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>
8991help: add a "{}" format string to Display the message
9092 |
9193LL | panic!("{}", C);
@@ -101,7 +103,8 @@ warning: panic message is not a string literal
101103LL | panic!(S);
102104 | ^
103105 |
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>
105108help: add a "{}" format string to Display the message
106109 |
107110LL | panic!("{}", S);
@@ -117,7 +120,8 @@ warning: panic message is not a string literal
117120LL | std::panic!(123);
118121 | ^^^
119122 |
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>
121125help: add a "{}" format string to Display the message
122126 |
123127LL | std::panic!("{}", 123);
@@ -133,7 +137,8 @@ warning: panic message is not a string literal
133137LL | core::panic!(&*"abc");
134138 | ^^^^^^^
135139 |
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>
137142help: add a "{}" format string to Display the message
138143 |
139144LL | core::panic!("{}", &*"abc");
@@ -181,15 +186,17 @@ warning: panic message is not a string literal
181186LL | fancy_panic::fancy_panic!(S);
182187 | ^
183188 |
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>
185191
186192warning: panic message is not a string literal
187193 --> $DIR/non-fmt-panic.rs:36:12
188194 |
189195LL | panic!(a!());
190196 | ^^^^
191197 |
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>
193200help: add a "{}" format string to Display the message
194201 |
195202LL | panic!("{}", a!());
@@ -205,7 +212,8 @@ warning: panic message is not a string literal
205212LL | panic!(format!("{}", 1));
206213 | ^^^^^^^^^^^^^^^^
207214 |
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>
209217 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here
210218help: remove the `format!(..)` macro call
211219 |
@@ -218,7 +226,8 @@ warning: panic message is not a string literal
218226LL | assert!(false, format!("{}", 1));
219227 | ^^^^^^^^^^^^^^^^
220228 |
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>
222231 = note: the assert!() macro supports formatting, so there's no need for the format!() macro here
223232help: remove the `format!(..)` macro call
224233 |
@@ -231,7 +240,8 @@ warning: panic message is not a string literal
231240LL | debug_assert!(false, format!("{}", 1));
232241 | ^^^^^^^^^^^^^^^^
233242 |
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>
235245 = note: the debug_assert!() macro supports formatting, so there's no need for the format!() macro here
236246help: remove the `format!(..)` macro call
237247 |
@@ -244,7 +254,8 @@ warning: panic message is not a string literal
244254LL | panic![123];
245255 | ^^^
246256 |
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>
248259help: add a "{}" format string to Display the message
249260 |
250261LL | panic!["{}", 123];
@@ -260,7 +271,8 @@ warning: panic message is not a string literal
260271LL | panic!{123};
261272 | ^^^
262273 |
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>
264276help: add a "{}" format string to Display the message
265277 |
266278LL | panic!{"{}", 123};
0 commit comments