serde_closure icon indicating copy to clipboard operation
serde_closure copied to clipboard

Correctly handle macro invocations in closures

Open alecmocatta opened this issue 4 years ago • 0 comments

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.

alecmocatta avatar Oct 15 '19 16:10 alecmocatta