Closed kemurphy closed 9 years ago
Some of the enums needed marker variants for the unused lifetimes. Actually, on second thought, maybe a better approach would be a wrapper struct with the marker and a lifetimeless enum:
struct Which<'a,A0,A1,A2,A3,A4> { marker: ::std::marker::PhantomData<&'a ()>, pub kind: Kind<A0,A1,A2,A3,A4>, }
What are your thoughts?
Also looks like the generated code needs to be adjusted.
Thanks! I found a better fix: 'a doesn't need to be a direct parameter of Which at all.
'a
Which
Even better. Thanks!
Some of the enums needed marker variants for the unused lifetimes. Actually, on second thought, maybe a better approach would be a wrapper struct with the marker and a lifetimeless enum:
What are your thoughts?