mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-27 09:50:41 +00:00
Explain special treatment for Dollar rule
This commit is contained in:
parent
5d00016dfb
commit
1523cd7c1a
@ -819,6 +819,7 @@ macro_rules! export_token_macro {
|
||||
#[cfg(syn_can_match_trailing_dollar)]
|
||||
export_token_macro![($)];
|
||||
|
||||
// Old rustc does not support ($) => {...} as a macro rule.
|
||||
#[cfg(not(syn_can_match_trailing_dollar))]
|
||||
export_token_macro![];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user