syn::Arm almost allows parsing the arms of cfg_select, except that it expects a Pat for each arm which doesn't allow for the cfg predicates that cfg_select expects.
Would you be open to supporting parsing these cfg_select arms? Either by modifying syn::Arm to encompass them, or through an additional type? I'd be glad to implement this, but I just wanted to check if you'd consider this in-scope for syn.
(Technically cfg_select does already parse, since it can be treated as a regular macro. But I need to parse into the arms as well for my use-case.)
cfg_select: https://doc.rust-lang.org/beta/std/macro.cfg_select.html
syn::Armalmost allows parsing the arms ofcfg_select, except that it expects aPatfor each arm which doesn't allow for the cfg predicates thatcfg_selectexpects.Would you be open to supporting parsing these
cfg_selectarms? Either by modifyingsyn::Armto encompass them, or through an additional type? I'd be glad to implement this, but I just wanted to check if you'd consider this in-scope forsyn.(Technically
cfg_selectdoes already parse, since it can be treated as a regular macro. But I need to parse into the arms as well for my use-case.)cfg_select: https://doc.rust-lang.org/beta/std/macro.cfg_select.html