--- Comment #2 from ---
I'm not sure if the patch is actually the right place to tackle this problem.

I would try to fix the behaviour of "rustByValue", but the way it's used seems
opposite to me and I dare not touch it:

    let data = (&*ptr).%3();
    set(p, %5data.into());
)").arg(, base, snakeCase(,,
                p.rustByValue ?"&" :"");

In the above snippet, the generated code will use a *reference* &data.into()
iff rustByValue is *true*. Is this reversed?

You are receiving this mail because:
You are watching all bug changes.

Reply via email to