about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/serialize.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-25 22:00:13 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2023-07-30 13:18:33 +0200
commit23815467a2ba4a5219149cb96bada4c7bea741bf (patch)
treed8d1459a45a207350907114dffebd6134b14be50 /compiler/rustc_macros/src/serialize.rs
parent2e0136a131f6ed5f6071adf36db08dd8d2205d19 (diff)
downloadrust-23815467a2ba4a5219149cb96bada4c7bea741bf.tar.gz
rust-23815467a2ba4a5219149cb96bada4c7bea741bf.zip
inline format!() args up to and including rustc_middle
Diffstat (limited to 'compiler/rustc_macros/src/serialize.rs')
-rw-r--r--compiler/rustc_macros/src/serialize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_macros/src/serialize.rs b/compiler/rustc_macros/src/serialize.rs
index 8d017d149f6..f1e7b8eb6c7 100644
--- a/compiler/rustc_macros/src/serialize.rs
+++ b/compiler/rustc_macros/src/serialize.rs
@@ -43,7 +43,7 @@ fn decodable_body(
     let ty_name = s.ast().ident.to_string();
     let decode_body = match s.variants() {
         [] => {
-            let message = format!("`{}` has no variants to decode", ty_name);
+            let message = format!("`{ty_name}` has no variants to decode");
             quote! {
                 panic!(#message)
             }