mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
![]() 11107: Fix generic type substitution in impl trait with assoc type r=pnevyk a=pnevyk Fixes #11045 The path transform now detects if a type parameter that is being substituted has an associated type. In that case it is necessary (or safe in general case) to fully qualify the substitution with a trait which the associated type belongs to. This PR also fixes the previous wrong behavior of the substitution that could create an invalid tree `PATH_TYPE -> PATH_TYPE -> ...`. Co-authored-by: Petr Nevyhoštěný <petr.nevyhosteny@gmail.com> |
||
---|---|---|
.. | ||
helpers | ||
line_index | ||
test_data | ||
tests | ||
traits | ||
active_parameter.rs | ||
apply_change.rs | ||
assists.rs | ||
defs.rs | ||
helpers.rs | ||
items_locator.rs | ||
label.rs | ||
lib.rs | ||
line_index.rs | ||
path_transform.rs | ||
rename.rs | ||
search.rs | ||
source_change.rs | ||
symbol_index.rs | ||
traits.rs | ||
ty_filter.rs |