Fix doc_concat macro on older versions of rustc
This commit is contained in:
parent
1a1884ce81
commit
60238bbb85
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user