diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-10-28 11:00:28 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-10-28 11:00:28 +0100 |
| commit | 5cefc3ce416dc435e2356dfa0e8f3cbe086a7619 (patch) | |
| tree | fa86135e457c8c7e12f35ab1ce0250da386cf14e | |
| parent | 1993f1efe717680479242e711848a4d38f35cf1b (diff) | |
| download | rust-5cefc3ce416dc435e2356dfa0e8f3cbe086a7619.tar.gz rust-5cefc3ce416dc435e2356dfa0e8f3cbe086a7619.zip | |
Mark panic_fmt suggestion as machine applicable.
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
| -rw-r--r-- | compiler/rustc_lint/src/panic_fmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/panic_fmt.rs b/compiler/rustc_lint/src/panic_fmt.rs index 7428a9d13ff..a08fae1f34e 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(); |
