mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
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, } } } ``` |
||
|---|---|---|
| .. | ||
| ast | ||
| parsing | ||
| tests | ||
| validation | ||
| algo.rs | ||
| ast.rs | ||
| fuzz.rs | ||
| hacks.rs | ||
| lib.rs | ||
| parsing.rs | ||
| ptr.rs | ||
| syntax_error.rs | ||
| syntax_node.rs | ||
| ted.rs | ||
| tests.rs | ||
| token_text.rs | ||
| utils.rs | ||
| validation.rs | ||