about summary refs log tree commit diff
path: root/compiler/rustc_mir_build
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-18 23:03:07 +0100
committerGitHub <noreply@github.com>2022-12-18 23:03:07 +0100
commitebe35637642fea72759d41f26385e3c59f1b01c0 (patch)
tree39f875c94a97bf6b92b19970da170f59de867797 /compiler/rustc_mir_build
parent221e71e7a10e43f6e276a349ebad77208169593e (diff)
parent3af7df91fcbe4c5197e55dc78838aeb5aa978d89 (diff)
downloadrust-ebe35637642fea72759d41f26385e3c59f1b01c0.tar.gz
rust-ebe35637642fea72759d41f26385e3c59f1b01c0.zip
Rollup merge of #105873 - matthiaskrgr:clippy_fmt, r=Nilstrieb
use &str / String literals instead of format!()
Diffstat (limited to 'compiler/rustc_mir_build')
-rw-r--r--compiler/rustc_mir_build/src/build/custom/parse/instruction.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/build/custom/parse/instruction.rs b/compiler/rustc_mir_build/src/build/custom/parse/instruction.rs
index ecc3e4de8d1..7c39a93a8eb 100644
--- a/compiler/rustc_mir_build/src/build/custom/parse/instruction.rs
+++ b/compiler/rustc_mir_build/src/build/custom/parse/instruction.rs
@@ -76,7 +76,7 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
         let Some((otherwise, rest)) = arms.split_last() else {
             return Err(ParseError {
                 span,
-                item_description: format!("no arms"),
+                item_description: "no arms".to_string(),
                 expected: "at least one arm".to_string(),
             })
         };