X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_macros%2Fsrc%2Fnewtype.rs;h=89ea89cf502e5e4c2723be0c371b2794c2ff84db;hb=6d46b1ec8769fbbb3ac2a2cb12f0cad527135413;hp=153473de6244952770385d1f5233ac4106a17168;hpb=80e309f7983bb15c805e86806b3d848aa9cbdfef;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