From f1fcc4dea319e1024b681f347cfb5ec307aaf743 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Mon, 19 Oct 2020 00:45:42 +0200 Subject: [PATCH] Ignore panic_fmt lint in format-args-capture ui test. --- src/test/ui/fmt/format-args-capture.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/ui/fmt/format-args-capture.rs b/src/test/ui/fmt/format-args-capture.rs index 9348bb46dfe3..4e3fa9a3c589 100644 --- a/src/test/ui/fmt/format-args-capture.rs +++ b/src/test/ui/fmt/format-args-capture.rs @@ -31,6 +31,7 @@ fn panic_with_single_argument_does_not_get_formatted() { // RFC #2795 suggests that this may need to change so that captured arguments are formatted. // For stability reasons this will need to part of an edition change. + #[allow(panic_fmt)] let msg = std::panic::catch_unwind(|| { panic!("{foo}"); }).unwrap_err();