Closed aumetra closed 10 months ago
Practically no struct should hit this limitation though.
Famous last words?
Why not make it PhantomData<(PhantomData<T1>, PhantomData<T2>)>
? That way the outer phantom data will not be a tuple and will have a Default
no matter how many generic parameters the type will have.
Famous last words?
Heh, fair
Why not make it
PhantomData<(PhantomData<T1>, PhantomData<T2>)>
?
I honestly just didn't think about it. Changed it
This PR adds support for structs with
?Sized
generic parameters. Previously those were not accepted.Technically this is a breaking change since this changes the internal
PhantomData
type fromPhantomData<(T1, T2)>
to(PhantomData<T1>, PhantomData<T2>)
, andDefault
is only implemented for tuples of up to 12 items due to missing variadic generics.Practically no struct should hit this limitation though.