diff options
| author | David Wood <david.wood@huawei.com> | 2022-06-27 16:33:57 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-06-30 08:59:21 +0100 |
| commit | 7ee4aa700321d0dc2a763a324fd1c0828d73f70f (patch) | |
| tree | 0ccd46d0bbccdf5d6abddbbf094387a9e5ac8919 /src/test/ui/consts/const-eval | |
| parent | 48e4bf115f2c4a4ac051f49dab862610fe57f622 (diff) | |
| download | rust-7ee4aa700321d0dc2a763a324fd1c0828d73f70f.tar.gz rust-7ee4aa700321d0dc2a763a324fd1c0828d73f70f.zip | |
lint: port non-fmt-panic diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'src/test/ui/consts/const-eval')
| -rw-r--r-- | src/test/ui/consts/const-eval/const_panic_stability.e2018.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/consts/const-eval/const_panic_stability.e2018.stderr b/src/test/ui/consts/const-eval/const_panic_stability.e2018.stderr index 94cf64fff19..f06dedc2298 100644 --- a/src/test/ui/consts/const-eval/const_panic_stability.e2018.stderr +++ b/src/test/ui/consts/const-eval/const_panic_stability.e2018.stderr @@ -5,9 +5,9 @@ LL | panic!({ "foo" }); | ^^^^^^^^^ | = note: `#[warn(non_fmt_panics)]` on by default - = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 + = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> -help: add a "{}" format string to Display the message +help: add a "{}" format string to `Display` the message | LL | panic!("{}", { "foo" }); | +++++ |
