]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast/src/ast_traits.rs
Auto merge of #106429 - djkoloski:add_vendor_to_fuchsia_target_triple, r=nagisa
[rust.git] / compiler / rustc_ast / src / ast_traits.rs
index 1b31be07f7ad1b1cc8cdb93b80fc463ab7d8e64b..4dc9c30a2c807a2050c8fb72638cb2b3e4a4d2a8 100644 (file)
@@ -214,7 +214,7 @@ fn tokens(&self) -> Option<&LazyAttrTokenStream> {
         match &self.kind {
             AttrKind::Normal(normal) => normal.tokens.as_ref(),
             kind @ AttrKind::DocComment(..) => {
-                panic!("Called tokens on doc comment attr {:?}", kind)
+                panic!("Called tokens on doc comment attr {kind:?}")
             }
         }
     }
@@ -222,7 +222,7 @@ fn tokens_mut(&mut self) -> Option<&mut Option<LazyAttrTokenStream>> {
         Some(match &mut self.kind {
             AttrKind::Normal(normal) => &mut normal.tokens,
             kind @ AttrKind::DocComment(..) => {
-                panic!("Called tokens_mut on doc comment attr {:?}", kind)
+                panic!("Called tokens_mut on doc comment attr {kind:?}")
             }
         })
     }