dtolnay / erased-serde

Type-erased Serialize, Serializer and Deserializer traits
Apache License 2.0
709 stars 36 forks source link

Lifetimed Generics no longer works #55

Closed bobyangyf closed 2 years ago

bobyangyf commented 2 years ago

Looks like https://github.com/dtolnay/erased-serde/commit/0b99efeb5d6c26fc8160911beb0a4410effe8239 added the fn __check_erased_serialize_supertrait<__T, $($generics)*>() so that if generics contains a lifetime generic, __T would be declared before the lifetime, so that it would no longer compile.

dtolnay commented 2 years ago

I've published a fix in 0.3.20. Sorry about the breakage!