fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
564 B16 linesraw
1warning: panic message is not a string literal
2  --> $DIR/const_panic_stability.rs:14:12
3   |
4LL |     panic!({ "foo" });
5   |            ^^^^^^^^^
6   |
7   = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
8   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
9   = note: `#[warn(non_fmt_panics)]` on by default
10help: add a "{}" format string to `Display` the message
11   |
12LL |     panic!("{}", { "foo" });
13   |            +++++
14
15warning: 1 warning emitted
16