diff options
author | bors <bors@rust-lang.org> | 2023-01-09 13:02:09 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-01-09 13:02:09 +0000 |
commit | ae659125a509967f09665b96d06f6ce6bf1ddd1b (patch) | |
tree | 5f4a84703df302cdc8a4d0b6a5547f963d6d0c4c /tests/rustdoc-js-std/parser-errors.js | |
parent | fe8ee9c43a52042e2150de8024524ee7a2296692 (diff) | |
parent | cfa914958c5eead0d8d84e0c7b8298ef7ac5530b (diff) | |
download | rust-ae659125a509967f09665b96d06f6ce6bf1ddd1b.tar.gz |
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,
}
}
}
```
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions