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 {