quasi icon indicating copy to clipboard operation
quasi copied to clipboard

Macros stripped by quasi_codegen::expand

Open jdub opened this issue 9 years ago • 4 comments

Hi there,

I'm in the process of updating servo/rust-bindgen's aster/quasi/syntæx stack to the latest releases from *mumble* 0.28/0.20/0.44 respectively.

Using the new versions, some key context-sensitive macros are stripped during expansion -- is this a bug, or an intentional change?

You can see the chatter about this problem on servo/rust-bindgen#270, including an example of the before/after expansion and stripped macro.

Thanks, Jeff

jdub avatar Nov 16 '16 09:11 jdub

This is a bug: https://github.com/serde-rs/serde/issues/608

oli-obk avatar Nov 16 '16 10:11 oli-obk

@oli-obk Thanks for letting me know! Should I close this one? I'm not clear on which is the correct repo.

jdub avatar Nov 16 '16 10:11 jdub

neither am I, just leave it open, we'll close it together with the other issue

oli-obk avatar Nov 16 '16 12:11 oli-obk

FWIW, since servo has upgraded their syntex dependency to 0.50, and for integrating rust-bindgen into servo, we need to have matched version, we have worked around this issue by removing all macro_rules! in files which would be processed by quasi in servo/rust-bindgen#329.

upsuper avatar Dec 10 '16 01:12 upsuper