bors
ae659125a5
Auto merge of #13763 - rami3l:fix/gen-partial-eq-generic, r=Veykril
fix: add generic `TypeBoundList` in generated derivable impl
Potentially fixes #13727.
Continuing with the work in #13732, this fix tries to add correct type bounds in the generated `impl` block:
```diff
enum Either<T, U> {
Left(T),
Right(U),
}
- impl<T, U> PartialEq for Either<T, U> {
+ impl<T: PartialEq, U: PartialEq> PartialEq for Either<T, U> {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Self::Left(l0), Self::Left(r0)) => l0 == r0,
(Self::Right(l0), Self::Right(r0)) => l0 == r0,
_ => false,
}
}
}
```
2023-01-09 13:02:09 +00:00
..
2022-12-24 14:36:10 -05:00
2022-12-24 14:36:10 -05:00
2023-01-02 14:52:32 +00:00
2023-01-09 11:24:44 +00:00
2023-01-02 15:02:54 +00:00
2023-01-08 17:29:57 +00:00
2023-01-08 17:29:57 +00:00
2023-01-08 17:29:57 +00:00
2023-01-09 13:02:09 +00:00
2023-01-09 12:23:59 +01:00
2023-01-09 12:22:29 +01:00
2023-01-02 14:52:32 +00:00
2022-12-24 14:36:10 -05:00
2022-12-24 14:36:10 -05:00
2023-01-02 15:02:54 +00:00
2023-01-02 15:02:54 +00:00
2022-11-23 17:24:03 +02:00
2023-01-02 15:02:54 +00:00
2023-01-02 14:52:32 +00:00
2022-11-23 17:24:03 +02:00
2022-12-25 05:07:47 -05:00
2023-01-02 14:52:32 +00:00
2023-01-02 15:02:54 +00:00
2023-01-09 11:53:23 +00:00
2023-01-02 14:52:32 +00:00
2023-01-02 15:02:54 +00:00
2023-01-09 13:02:09 +00:00
2023-01-08 17:29:57 +00:00
2022-11-23 17:24:03 +02:00
2022-12-25 05:07:47 -05:00
2022-12-24 14:36:10 -05:00
2022-12-30 11:14:15 +00:00
2022-11-23 17:24:03 +02:00