Skip to content

Commit

Permalink
Mark panic_fmt suggestion as machine applicable.
Browse files Browse the repository at this point in the history
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
  • Loading branch information
m-ou-se and bjorn3 committed Oct 28, 2020
1 parent 1993f1e commit 5cefc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lint/src/panic_fmt.rs
Expand Up @@ -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();
Expand Down

0 comments on commit 5cefc3c

Please sign in to comment.