X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_macros%2Fsrc%2Fnewtype.rs;h=89ea89cf502e5e4c2723be0c371b2794c2ff84db;hb=35d488f23da6c018e1f88097756e6135bdd0ecf6;hp=153473de6244952770385d1f5233ac4106a17168;hpb=da1ca5df6e0ce759d409ce853d836cb00542c44f;p=rust.git diff --git a/compiler/rustc_macros/src/newtype.rs b/compiler/rustc_macros/src/newtype.rs index 153473de624..89ea89cf502 100644 --- a/compiler/rustc_macros/src/newtype.rs +++ b/compiler/rustc_macros/src/newtype.rs @@ -41,7 +41,7 @@ fn parse(input: ParseStream<'_>) -> Result { }; if let Some(old) = max.replace(literal.lit) { - panic!("Specified multiple max: {:?}", old); + panic!("Specified multiple max: {old:?}"); } false @@ -52,7 +52,7 @@ fn parse(input: ParseStream<'_>) -> Result { }; if let Some(old) = debug_format.replace(literal.lit) { - panic!("Specified multiple debug format options: {:?}", old); + panic!("Specified multiple debug format options: {old:?}"); } false