]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast/src/attr/mod.rs
Rollup merge of #106636 - djkoloski:accept_old_fuchsia_triple, r=tmandry
[rust.git] / compiler / rustc_ast / src / attr / mod.rs
index d99f6ed2c1cd3d842964559774669b83e86dc75b..c6b6207b3186e85442b1c388c221b6974b0306b3 100644 (file)
@@ -310,7 +310,7 @@ pub fn tokens(&self) -> TokenStream {
             AttrKind::Normal(normal) => normal
                 .tokens
                 .as_ref()
-                .unwrap_or_else(|| panic!("attribute is missing tokens: {:?}", self))
+                .unwrap_or_else(|| panic!("attribute is missing tokens: {self:?}"))
                 .to_attr_token_stream()
                 .to_tokenstream(),
             &AttrKind::DocComment(comment_kind, data) => TokenStream::new(vec![TokenTree::Token(