Fix doc_concat macro on older versions of rustc

This commit is contained in:
Jonas Platte 2020-07-15 02:02:14 +02:00
parent 1a1884ce81
commit 60238bbb85
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -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 {