about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-09 13:02:09 +0000
committerbors <bors@rust-lang.org>2023-01-09 13:02:09 +0000
commitae659125a509967f09665b96d06f6ce6bf1ddd1b (patch)
tree5f4a84703df302cdc8a4d0b6a5547f963d6d0c4c /compiler/rustc_codegen_llvm/src
parentfe8ee9c43a52042e2150de8024524ee7a2296692 (diff)
parentcfa914958c5eead0d8d84e0c7b8298ef7ac5530b (diff)
downloadrust-ae659125a509967f09665b96d06f6ce6bf1ddd1b.tar.gz
rust-ae659125a509967f09665b96d06f6ce6bf1ddd1b.zip
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 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions