From 5cefc3ce416dc435e2356dfa0e8f3cbe086a7619 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Wed, 28 Oct 2020 11:00:28 +0100 Subject: [PATCH] Mark panic_fmt suggestion as machine applicable. Co-authored-by: bjorn3 --- compiler/rustc_lint/src/panic_fmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_lint/src/panic_fmt.rs b/compiler/rustc_lint/src/panic_fmt.rs index 7428a9d13ff7..a08fae1f34e2 100644 --- a/compiler/rustc_lint/src/panic_fmt.rs +++ b/compiler/rustc_lint/src/panic_fmt.rs @@ -109,7 +109,7 @@ fn check_panic<'tcx>(cx: &LateContext<'tcx>, f: &'tcx hir::Expr<'tcx>, arg: &'tc arg.span.shrink_to_lo(), "or add a \"{}\" format string to use the message literally", "\"{}\", ".into(), - Applicability::MaybeIncorrect, + Applicability::MachineApplicable, ); } l.emit();