From 60238bbb8568bb85ff80b6d490f23ab868d53190 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 15 Jul 2020 02:02:14 +0200 Subject: [PATCH] Fix doc_concat macro on older versions of rustc --- ruma-identifiers/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruma-identifiers/src/macros.rs b/ruma-identifiers/src/macros.rs index cec6aac4..60f04d21 100644 --- a/ruma-identifiers/src/macros.rs +++ b/ruma-identifiers/src/macros.rs @@ -2,7 +2,7 @@ /// This allows documentation to be dynamically generated based on input. /// Necessary to work around https://github.com/rust-lang/rust/issues/52607. macro_rules! doc_concat { - ( $( #[doc = $doc:expr] $thing:item )* ) => ( $( #[doc = $doc] $thing )* ); + ( $( #[doc = $doc:expr] $( $thing:tt )* )* ) => ( $( #[doc = $doc] $( $thing )* )* ); } macro_rules! common_impls {