serde_closure
serde_closure copied to clipboard
Correctly handle macro invocations in closures
Currently this crate doesn't necessarily correctly handle macro invocations that expand to code that includes captured variables.
Doing this correctly requires eagerly evaluating macro invocations, see https://github.com/rust-lang/rfcs/pull/2320
Currently this crate assumes macro arguments are comma-separated expressions, emitting a warning if that doesn't hold.