Skip to content

Commit f1fcc4d

Browse files
committed
Ignore panic_fmt lint in format-args-capture ui test.
1 parent d3b4149 commit f1fcc4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/ui/fmt/format-args-capture.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ fn panic_with_single_argument_does_not_get_formatted() {
3131
// RFC #2795 suggests that this may need to change so that captured arguments are formatted.
3232
// For stability reasons this will need to part of an edition change.
3333

34+
#[allow(panic_fmt)]
3435
let msg = std::panic::catch_unwind(|| {
3536
panic!("{foo}");
3637
}).unwrap_err();

0 commit comments

Comments
 (0)